From f0cfa30eee03403cd48de2088a0dfa7ddcd4e9e3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 1 Apr 2003 07:09:36 +0000 Subject: [PATCH] Added QUIT propogation --- plugins/Relay.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/Relay.py b/plugins/Relay.py index d081f76dc..3f8b8a07b 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -215,6 +215,21 @@ class Relay(callbacks.Privmsg): for otherIrc in self.ircs.itervalues(): if otherIrc != irc: otherIrc.queueMsg(ircmsgs.privmsg(channel, s)) + + def doQuit(self, irc, msg): + if self.started: + if not isinstance(irc, irclib.Irc): + irc = irc.getRealIrc() + network = self.abbreviations[irc] + if len(msg.args) > 0: + s = '%s/%s has quit (%s)' % (msg.nick, network, msg.args[0]) + else: + s = '%s/%s has quit.' % (msg.nick, network) + for channel in self.channels: + if msg.nick in irc.state.channels[channel].users: + for otherIrc in self.ircs.itervalues(): + if otherIrc != irc: + otherIrc.queueMsg(ircmsgs.privmsg(channel, s)) def outFilter(self, irc, msg): if not self.started: