mirror of
https://github.com/jlu5/PyLink.git
synced 2025-03-28 10:31:01 +01:00
relay: match P10 WALL* commands as notices
This commit is contained in:
parent
ec9063b9e8
commit
7a51220309
@ -1320,7 +1320,9 @@ 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'))
|
command = command.upper()
|
||||||
|
notice = 'NOTICE' in command or command.startswith('WALL')
|
||||||
|
|
||||||
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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user