mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
We shouldn't send a new nick in response to 433 when we've already connected.
This commit is contained in:
parent
d1bf6b5497
commit
b6f03a42b4
@ -611,10 +611,11 @@ class Irc(IrcCommandDispatcher):
|
|||||||
|
|
||||||
def do433(self, msg):
|
def do433(self, msg):
|
||||||
"""Handles 'nickname already in use' messages."""
|
"""Handles 'nickname already in use' messages."""
|
||||||
newNick = self._getNextNick()
|
if not self.afterConnect:
|
||||||
assert newNick != self.nick, 'self._getNextNick() returned same nick.'
|
newNick = self._getNextNick()
|
||||||
log.info('Got 433: %s is in use. Trying %s.', self.nick, newNick)
|
assert newNick != self.nick
|
||||||
self.sendMsg(ircmsgs.nick(newNick))
|
log.info('Got 433: %s is in use. Trying %s.', self.nick, newNick)
|
||||||
|
self.sendMsg(ircmsgs.nick(newNick))
|
||||||
do432 = do433 # 432: Erroneous nickname.
|
do432 = do433 # 432: Erroneous nickname.
|
||||||
|
|
||||||
def doJoin(self, msg):
|
def doJoin(self, msg):
|
||||||
|
Loading…
Reference in New Issue
Block a user