Use IRCServer.original_nickname in perform.py as we might not have our "given" nickname yet

This commit is contained in:
jesopo 2018-05-02 07:20:13 +01:00
parent b6d34eb3f8
commit dcd0c0a542

View file

@ -11,6 +11,6 @@ class Module(object):
command = command.split("%%") command = command.split("%%")
for j, part in enumerate(command[:]): for j, part in enumerate(command[:]):
command[j] = part.replace("%nick%", event["server" command[j] = part.replace("%nick%", event["server"
].nickname) ].original_nickname)
command = "%".join(command) command = "%".join(command)
event["server"].send(command) event["server"].send(command)