3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

relay: fix 7d919e6 again

PyLink bots can send messages over the relay to channels, just not to remote users.
This commit is contained in:
James Lu 2015-10-02 23:40:20 -07:00
parent a9253eda77
commit 17cfdcab0a

View File

@ -687,7 +687,7 @@ def handle_messages(irc, numeric, command, args):
notice = (command in ('NOTICE', 'PYLINK_SELF_NOTICE')) notice = (command in ('NOTICE', 'PYLINK_SELF_NOTICE'))
target = args['target'] target = args['target']
text = args['text'] text = args['text']
if utils.isInternalClient(irc, numeric): if utils.isInternalClient(irc, numeric) and utils.isInternalClient(irc, target):
return return
relay = getRelay((irc.name, target)) relay = getRelay((irc.name, target))
remoteusers = relayusers[(irc.name, numeric)] remoteusers = relayusers[(irc.name, numeric)]