mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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):
|
||||
"""Handles 'nickname already in use' messages."""
|
||||
newNick = self._getNextNick()
|
||||
assert newNick != self.nick, 'self._getNextNick() returned same nick.'
|
||||
log.info('Got 433: %s is in use. Trying %s.', self.nick, newNick)
|
||||
self.sendMsg(ircmsgs.nick(newNick))
|
||||
if not self.afterConnect:
|
||||
newNick = self._getNextNick()
|
||||
assert newNick != self.nick
|
||||
log.info('Got 433: %s is in use. Trying %s.', self.nick, newNick)
|
||||
self.sendMsg(ircmsgs.nick(newNick))
|
||||
do432 = do433 # 432: Erroneous nickname.
|
||||
|
||||
def doJoin(self, msg):
|
||||
|
Loading…
Reference in New Issue
Block a user