From 5db1dbd595d3cc40d36bdff5f97b37ebf5301b8d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 27 Mar 2003 09:15:38 +0000 Subject: [PATCH] Changed idiom in doPart to be more like others --- plugins/Relay.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/Relay.py b/plugins/Relay.py index 3f5ff0bf1..a4f02e60b 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -157,11 +157,10 @@ class Relay(privmsgs.CapabilityCheckingPrivmsg): abbreviation = self.abbreviations[irc] s = '%s has left on %s' % (msg.nick, abbreviation) for otherIrc in self.ircs.itervalues(): - if otherIrc == irc: - continue - for channel in channels: - if channel in otherIrc.state.channels: - otherIrc.queueMsg(ircmsgs.privmsg(channel, s)) + if otherIrc != irc: + for channel in channels: + if channel in otherIrc.state.channels: + otherIrc.queueMsg(ircmsgs.privmsg(channel, s)) def outFilter(self, irc, msg): if not isinstance(irc, irclib.Irc):