From 7cb54def63c3fc05636b8d732d686a238c65929b Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 25 Aug 2004 23:05:36 +0000 Subject: [PATCH] An attepmt to be reloadable. --- plugins/Relay.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/Relay.py b/plugins/Relay.py index 4cda5d8c0..ab7724706 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -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): """