From 9aaba996b32fc188509821c19f129d57d5632138 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 18 May 2005 05:23:38 +0000 Subject: [PATCH] Changed log message for 433 to be more accurate when a 432 is encountered. --- src/irclib.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index 66bce2fd4..e12ac25f8 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -893,14 +893,16 @@ class Irc(IrcCommandDispatcher): self.sendMsg(ircmsgs.mode(self.nick, umodes)) do377 = do422 = do376 - def do433(self, msg): - """Handles 'nickname already in use' messages.""" + def do43x(self, msg, problem): if not self.afterConnect: newNick = self._getNextNick() assert newNick != self.nick - log.info('Got 433: %s is in use. Trying %s.', self.nick, newNick) + log.info('Got 433: %s %s. Trying %s.',self.nick, problem, newNick) self.sendMsg(ircmsgs.nick(newNick)) - do432 = do433 # 432: Erroneous nickname. + def do433(self, msg): + self.do43x(msg, 'is in use') + def do432(self, msg): + self.do43x(msg, 'is not a valid nickname') def doJoin(self, msg): if msg.nick == self.nick: