mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Fixed bug #851661.
This commit is contained in:
parent
f23d8b0b1e
commit
da92309ba4
@ -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.
|
* Fixed Http.freshmeat for projects with a space in their names.
|
||||||
|
|
||||||
* Added Karma.most for determining various "mosts" in the Karma
|
* Added Karma.most for determining various "mosts" in the Karma
|
||||||
|
@ -405,7 +405,8 @@ class Irc(IrcCommandDispatcher):
|
|||||||
'333', '353', '332', '366', '005'])
|
'333', '353', '332', '366', '005'])
|
||||||
def __init__(self, nick, user='', ident='', password='', callbacks=None):
|
def __init__(self, nick, user='', ident='', password='', callbacks=None):
|
||||||
world.ircs.append(self)
|
world.ircs.append(self)
|
||||||
self.nick = intern(nick)
|
self.originalNick = intern(nick)
|
||||||
|
self.nick = self.originalNick
|
||||||
self.password = password
|
self.password = password
|
||||||
self.user = intern(user or nick) # Default to nick
|
self.user = intern(user or nick) # Default to nick
|
||||||
self.ident = intern(ident or nick) # Ditto.
|
self.ident = intern(ident or nick) # Ditto.
|
||||||
@ -430,6 +431,8 @@ class Irc(IrcCommandDispatcher):
|
|||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
"""Resets the Irc object. Useful for handling reconnects."""
|
"""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.state.reset()
|
||||||
self.queue.reset()
|
self.queue.reset()
|
||||||
self.server = None
|
self.server = None
|
||||||
|
Loading…
Reference in New Issue
Block a user