From 53de6542f6519d252df393cd940195f82a362e7c Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 27 Aug 2016 20:39:35 -0700 Subject: [PATCH] clientbot: in nick(), make sure irc.pseudoclient exists --- protocols/clientbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 2333be3..0f00ea4 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -179,7 +179,7 @@ class ClientbotWrapperProtocol(Protocol): def nick(self, source, newnick): """STUB: Sends NICK changes.""" - if source == self.irc.pseudoclient.uid: + if self.irc.pseudoclient and source == self.irc.pseudoclient.uid: self.irc.send('NICK :%s' % newnick) # No state update here: the IRCd will respond with a NICK acknowledgement if the change succeeds. else: