use PRIORITY_URGENT in perform.py

This commit is contained in:
jesopo 2018-07-16 00:41:08 +01:00
parent e06d5f37f8
commit d385d73dab

View file

@ -1,9 +1,9 @@
import EventManager
class Module(object): class Module(object):
def __init__(self, bot): def __init__(self, bot):
bot.events.on("received").on("numeric").on("001").hook( bot.events.on("received").on("numeric").on("001").hook(
self.on_connect) self.on_connect, priority=EventManager.PRIORITY_URGENT)
def on_connect(self, event): def on_connect(self, event):
commands = event["server"].get_setting("perform", []) commands = event["server"].get_setting("perform", [])