mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Changed idiom in doPart to be more like others
This commit is contained in:
parent
c62a65e1ec
commit
5db1dbd595
@ -157,11 +157,10 @@ class Relay(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
abbreviation = self.abbreviations[irc]
|
abbreviation = self.abbreviations[irc]
|
||||||
s = '%s has left on %s' % (msg.nick, abbreviation)
|
s = '%s has left on %s' % (msg.nick, abbreviation)
|
||||||
for otherIrc in self.ircs.itervalues():
|
for otherIrc in self.ircs.itervalues():
|
||||||
if otherIrc == irc:
|
if otherIrc != irc:
|
||||||
continue
|
for channel in channels:
|
||||||
for channel in channels:
|
if channel in otherIrc.state.channels:
|
||||||
if channel in otherIrc.state.channels:
|
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
||||||
otherIrc.queueMsg(ircmsgs.privmsg(channel, s))
|
|
||||||
|
|
||||||
def outFilter(self, irc, msg):
|
def outFilter(self, irc, msg):
|
||||||
if not isinstance(irc, irclib.Irc):
|
if not isinstance(irc, irclib.Irc):
|
||||||
|
Loading…
Reference in New Issue
Block a user