mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 03:04:05 +01:00
relay: bind handle_messages at a higher priority than fantasy
This fixes #123, where responses for fantasy commands are relayed before the original message if the Fantasy plugin is loaded before Relay.
This commit is contained in:
parent
5e92aefcd4
commit
afd4558531
@ -1348,7 +1348,7 @@ def handle_messages(irc, numeric, command, args):
|
||||
return
|
||||
|
||||
for cmd in ('PRIVMSG', 'NOTICE', 'PYLINK_SELF_NOTICE', 'PYLINK_SELF_PRIVMSG'):
|
||||
utils.add_hook(handle_messages, cmd)
|
||||
utils.add_hook(handle_messages, cmd, priority=500)
|
||||
|
||||
def handle_kick(irc, source, command, args):
|
||||
channel = args['channel']
|
||||
|
Loading…
Reference in New Issue
Block a user