diff --git a/src/handler.py b/src/handler.py index 1b0b7e6..4a8e64d 100644 --- a/src/handler.py +++ b/src/handler.py @@ -101,8 +101,6 @@ def unhandled(cli, prefix, cmd, *args): notify_error(cli, botconfig.CHANNEL, log) def connect_callback(cli): - @hook("endofmotd", hookid=294) - @hook("nomotd", hookid=294) def prepare_stuff(cli, *args): # just in case we haven't managed to successfully auth yet if not botconfig.SASL_AUTHENTICATION: @@ -128,6 +126,9 @@ def connect_callback(cli): wolfgame.connect_callback(cli) + hook("endofmotd", hookid=294)(prepare_stuff) + hook("nomotd", hookid=294)(prepare_stuff) + def mustregain(cli, *blah): if not botconfig.PASS: return