mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 13:09:23 +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:
parent
20e730ba2b
commit
d81a9cd5c3
@ -1318,7 +1318,7 @@ def handle_part(irc, numeric, command, args):
|
||||
utils.add_hook(handle_part, 'PART')
|
||||
|
||||
def handle_messages(irc, numeric, command, args):
|
||||
notice = (command in ('NOTICE', 'PYLINK_SELF_NOTICE'))
|
||||
notice = ('PRIVMSG' not in command)
|
||||
target = args['target']
|
||||
text = args['text']
|
||||
if irc.is_internal_client(numeric) and irc.is_internal_client(target):
|
||||
|
Loading…
Reference in New Issue
Block a user