3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-17 23:52:49 +01:00

relay: differentiate between PRIVMSG vs. NOTICE via a blacklist

This is so that P10 WALL* commands are forwarded correctly as notices instead of privmsgs.
This commit is contained in:
James Lu 2017-12-21 01:27:34 -08:00
parent 20e730ba2b
commit d81a9cd5c3

View File

@ -1318,7 +1318,7 @@ def handle_part(irc, numeric, command, args):
utils.add_hook(handle_part, 'PART') utils.add_hook(handle_part, 'PART')
def handle_messages(irc, numeric, command, args): def handle_messages(irc, numeric, command, args):
notice = (command in ('NOTICE', 'PYLINK_SELF_NOTICE')) notice = ('PRIVMSG' not in command)
target = args['target'] target = args['target']
text = args['text'] text = args['text']
if irc.is_internal_client(numeric) and irc.is_internal_client(target): if irc.is_internal_client(numeric) and irc.is_internal_client(target):