Handled the case where nickmods got all run out.

This commit is contained in:
Jeremy Fincher 2003-12-06 13:20:59 +00:00
parent bba1d274e0
commit a23fbcfb1c

View File

@ -551,7 +551,9 @@ class Irc(IrcCommandDispatcher):
def do433(self, msg): def do433(self, msg):
"""Handles 'nickname already in use' messages.""" """Handles 'nickname already in use' messages."""
self.sendMsg(ircmsgs.nick(self._nickmods.pop(0) % self.nick)) if not self._nickmods:
self._nickmods = conf.nickmods[:]
self.sendMsg(ircmsgs.nick(self._nickmods.pop(0) % self.originalNick))
do432 = do433 do432 = do433
def doError(self, msg): def doError(self, msg):