mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Oops, exception when a dude quits and supybot's not in a channel he's supposed to be in.
This commit is contained in:
parent
65cf9af143
commit
df3d7a4ecb
@ -524,6 +524,7 @@ class Relay(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
s = '%s has quit %s.' % (msg.nick, network)
|
s = '%s has quit %s.' % (msg.nick, network)
|
||||||
for channel in self.registryValue('channels'):
|
for channel in self.registryValue('channels'):
|
||||||
|
if channel in self.ircstates[irc].channels:
|
||||||
if msg.nick in self.ircstates[irc].channels[channel].users:
|
if msg.nick in self.ircstates[irc].channels[channel].users:
|
||||||
m = ircmsgs.privmsg(channel, s)
|
m = ircmsgs.privmsg(channel, s)
|
||||||
self._sendToOthers(irc, m)
|
self._sendToOthers(irc, m)
|
||||||
|
Loading…
Reference in New Issue
Block a user