An attepmt to be reloadable.

This commit is contained in:
Jeremy Fincher 2004-08-25 23:05:36 +00:00
parent ea1ddf1880
commit 7cb54def63

View File

@ -147,6 +147,12 @@ class Relay(callbacks.Privmsg):
self.ircstates[irc] = irclib.IrcState()
if irc not in self.lastmsg:
self.lastmsg[irc] = ircmsgs.ping('this is just a fake message')
if irc.afterConnect:
# We've probably been reloaded. Let's send some messages to get
# our IrcState objects up to current.
for channel in self.registryValue('channels'):
irc.queueMsg(ircmsgs.who(channel))
irc.queueMsg(ircmsgs.names(channel))
def join(self, irc, msg, args):
"""<channel>