3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-12 13:19:49 +01:00

services_support: raise endburst handler priority

Other plugins may implement endburst handlers assuming that their service bots have already been created.
This commit is contained in:
James Lu 2018-05-05 13:05:43 -07:00
parent 01c22aac21
commit 2532042506

View File

@ -98,7 +98,7 @@ def handle_endburst(irc, source, command, args):
for name, sbot in world.services.items(): for name, sbot in world.services.items():
spawn_service(irc, source, command, {'name': name}) spawn_service(irc, source, command, {'name': name})
utils.add_hook(handle_endburst, 'ENDBURST') utils.add_hook(handle_endburst, 'ENDBURST', priority=500)
def handle_kill(irc, source, command, args): def handle_kill(irc, source, command, args):
"""Handle KILLs to PyLink service bots, respawning them as needed.""" """Handle KILLs to PyLink service bots, respawning them as needed."""