From 17cfdcab0a0e2867408b4cc7bec666eff2807383 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 2 Oct 2015 23:40:20 -0700 Subject: [PATCH] relay: fix 7d919e6 again PyLink bots can send messages over the relay to channels, just not to remote users. --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index cf46006..2a11f22 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -687,7 +687,7 @@ def handle_messages(irc, numeric, command, args): notice = (command in ('NOTICE', 'PYLINK_SELF_NOTICE')) target = args['target'] text = args['text'] - if utils.isInternalClient(irc, numeric): + if utils.isInternalClient(irc, numeric) and utils.isInternalClient(irc, target): return relay = getRelay((irc.name, target)) remoteusers = relayusers[(irc.name, numeric)]