This commit is contained in:
Jeremy Fincher 2003-12-02 11:55:26 +00:00
parent f23d8b0b1e
commit da92309ba4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
* Fixed bug in which the bot wouldn't rejoin channels after a
reconnect. Thank the Lord for tcpkill :)
* Fixed Http.freshmeat for projects with a space in their names.
* Added Karma.most for determining various "mosts" in the Karma

View File

@ -405,7 +405,8 @@ class Irc(IrcCommandDispatcher):
'333', '353', '332', '366', '005'])
def __init__(self, nick, user='', ident='', password='', callbacks=None):
world.ircs.append(self)
self.nick = intern(nick)
self.originalNick = intern(nick)
self.nick = self.originalNick
self.password = password
self.user = intern(user or nick) # Default to nick
self.ident = intern(ident or nick) # Ditto.
@ -430,6 +431,8 @@ class Irc(IrcCommandDispatcher):
def reset(self):
"""Resets the Irc object. Useful for handling reconnects."""
self.nick = self.originalNick
self.prefix = '%s!%s@%s' % (self.nick, self.ident, 'unset.domain')
self.state.reset()
self.queue.reset()
self.server = None