Don't change our nick on 433 if we're using our default nick.

This commit is contained in:
Jeremy Fincher 2004-02-13 18:37:35 +00:00
parent 6f8fafb04c
commit 0dcaf942ef

View File

@ -572,7 +572,9 @@ class Irc(IrcCommandDispatcher):
def do433(self, msg):
"""Handles 'nickname already in use' messages."""
self.sendMsg(ircmsgs.nick(self.nickmods.next() % self.originalNick))
if self.nick != self.originalNick:
newNick = self.nickmods.next() % self.originalNick
self.sendMsg(ircmsgs.nick(newNick))
do432 = do433
def doError(self, msg):