mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +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):
|
def nick(self, source, newnick):
|
||||||
"""STUB: Sends NICK changes."""
|
"""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)
|
self.irc.send('NICK :%s' % newnick)
|
||||||
# No state update here: the IRCd will respond with a NICK acknowledgement if the change succeeds.
|
# No state update here: the IRCd will respond with a NICK acknowledgement if the change succeeds.
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user