mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Don't try to send messages to zombies.
This commit is contained in:
parent
c38ca4dec1
commit
685eda4a9f
@ -433,7 +433,7 @@ class Relay(callbacks.Privmsg):
|
|||||||
def _sendToOthers(self, irc, msg):
|
def _sendToOthers(self, irc, msg):
|
||||||
assert msg.command == 'PRIVMSG' or msg.command == 'TOPIC'
|
assert msg.command == 'PRIVMSG' or msg.command == 'TOPIC'
|
||||||
for otherIrc in world.ircs:
|
for otherIrc in world.ircs:
|
||||||
if otherIrc != irc:
|
if otherIrc != irc and not irc.zombie:
|
||||||
if msg.args[0] in otherIrc.state.channels:
|
if msg.args[0] in otherIrc.state.channels:
|
||||||
self._addRelayedMsg(msg)
|
self._addRelayedMsg(msg)
|
||||||
otherIrc.queueMsg(msg)
|
otherIrc.queueMsg(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user