mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-28 14:01:04 -05:00
Relaynext: fix check for disconnected networks
This commit is contained in:
parent
7af92f86a5
commit
a08eb2dc4a
@ -249,12 +249,14 @@ class RelayNext(callbacks.Plugin):
|
||||
for cn in targets:
|
||||
target, net = cn.split("@")
|
||||
otherIrc = world.getIrc(net)
|
||||
target_chanobj = otherIrc.state.channels.get(target)
|
||||
if otherIrc is None:
|
||||
self.log.debug("RelayNext: message to network %r"
|
||||
" dropped, we are not connected "
|
||||
"there!", net)
|
||||
elif (not target_chanobj) or otherIrc.nick not in target_chanobj.users:
|
||||
return
|
||||
|
||||
target_chanobj = otherIrc.state.channels.get(target)
|
||||
if (not target_chanobj) or otherIrc.nick not in target_chanobj.users:
|
||||
# We're not in the target relay channel!
|
||||
self.log.debug("RelayNext: message to %s@%s "
|
||||
"dropped, we are not in that "
|
||||
|
Loading…
x
Reference in New Issue
Block a user