mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-28 05:29:25 +01:00
Fix regression in 024ac165
that caused channel messages to only be sent to one other net, instead of all relay links
This commit is contained in:
parent
ea7681502f
commit
8f13ae778a
@ -283,6 +283,7 @@ def handle_privmsg(irc, numeric, command, args):
|
|||||||
text = args['text']
|
text = args['text']
|
||||||
if target == irc.pseudoclient.uid:
|
if target == irc.pseudoclient.uid:
|
||||||
return
|
return
|
||||||
|
sent = 0
|
||||||
for netname, user in relayusers[(irc.name, numeric)].items():
|
for netname, user in relayusers[(irc.name, numeric)].items():
|
||||||
remoteirc = utils.networkobjects[netname]
|
remoteirc = utils.networkobjects[netname]
|
||||||
# HACK: Don't break on sending to @#channel or similar.
|
# HACK: Don't break on sending to @#channel or similar.
|
||||||
@ -307,8 +308,8 @@ def handle_privmsg(irc, numeric, command, args):
|
|||||||
remoteirc.proto.noticeClient(remoteirc, user, real_target, text)
|
remoteirc.proto.noticeClient(remoteirc, user, real_target, text)
|
||||||
else:
|
else:
|
||||||
remoteirc.proto.messageClient(remoteirc, user, real_target, text)
|
remoteirc.proto.messageClient(remoteirc, user, real_target, text)
|
||||||
break
|
sent += 1
|
||||||
else:
|
if not sent:
|
||||||
# We must be on a common channel with the target. Otherwise, the sender
|
# We must be on a common channel with the target. Otherwise, the sender
|
||||||
# doesn't have a client representing them on the remote network,
|
# doesn't have a client representing them on the remote network,
|
||||||
# and we won't have anywhere to send our messages from.
|
# and we won't have anywhere to send our messages from.
|
||||||
|
Loading…
Reference in New Issue
Block a user