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:
parent
01c22aac21
commit
2532042506
@ -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."""
|
||||||
|
Loading…
Reference in New Issue
Block a user