mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
clientbot: in nick(), make sure irc.pseudoclient exists
This commit is contained in:
parent
42a104534a
commit
53de6542f6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user