3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

clientbot: decouple inbound and outbound nick changes

This commit is contained in:
James Lu 2016-08-31 23:12:45 -07:00
parent 9bda4094e4
commit ae63f72cf9

View File

@ -579,7 +579,8 @@ class ClientbotWrapperProtocol(Protocol):
return return
oldnick = self.irc.users[source].nick oldnick = self.irc.users[source].nick
self.nick(source, args[0]) self.irc.users[source].nick = args[0]
return {'newnick': args[0], 'oldnick': oldnick} return {'newnick': args[0], 'oldnick': oldnick}
def handle_part(self, source, command, args): def handle_part(self, source, command, args):