mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-30 23:41:07 -05:00
RelayNext: fix check for disconnected networks
This commit is contained in:
parent
939b3ad786
commit
59b0b5c991
@ -251,11 +251,11 @@ class RelayNext(callbacks.Plugin):
|
|||||||
targets.remove(source)
|
targets.remove(source)
|
||||||
for cn in targets:
|
for cn in targets:
|
||||||
target, net = cn.split("@")
|
target, net = cn.split("@")
|
||||||
try:
|
otherIrc = world.getIrc(net)
|
||||||
otherIrc = world.getIrc(net)
|
if otherIrc is None:
|
||||||
except KeyError:
|
self.log.debug("RelayNext: message to network %r"
|
||||||
self.log.debug("RelayNext: message to %s dropped, we "
|
" dropped, we are not connected "
|
||||||
"are not connected there!", net)
|
"there!", net)
|
||||||
else:
|
else:
|
||||||
out_msg = ircmsgs.privmsg(target, out_s)
|
out_msg = ircmsgs.privmsg(target, out_s)
|
||||||
out_msg.tag('relayedMsg')
|
out_msg.tag('relayedMsg')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user