From afd4558531ffd84639d17d65a3e28e52372b5e77 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 2 Sep 2017 21:17:54 -0700 Subject: [PATCH] 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. --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 9c492fa..a205a20 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -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']