From ae63f72cf9f1020fe9a707d1771b67573fb92140 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 31 Aug 2016 23:12:45 -0700 Subject: [PATCH] clientbot: decouple inbound and outbound nick changes --- protocols/clientbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 98fb59e..18f65fd 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -579,7 +579,8 @@ class ClientbotWrapperProtocol(Protocol): return oldnick = self.irc.users[source].nick - self.nick(source, args[0]) + self.irc.users[source].nick = args[0] + return {'newnick': args[0], 'oldnick': oldnick} def handle_part(self, source, command, args):