]> jfr.im git - erebus.git/commitdiff
control - aliased die to restart
authorzonidjan <redacted>
Fri, 24 Mar 2017 23:31:50 +0000 (18:31 -0500)
committerzonidjan <redacted>
Fri, 24 Mar 2017 23:31:50 +0000 (18:31 -0500)
modules/control.py

index 699696ceddfe94bd7c11d01236562feaee3e06cf..5c95b0b6cad5f8ab0e6aad491ea1df73cf0ad2b0 100644 (file)
@@ -22,7 +22,7 @@ import ctlmod
 from collections import deque
 
 
-@lib.hook(needchan=False, glevel=lib.MANAGER)
+@lib.hook(('die','restart'), needchan=False, glevel=lib.MANAGER)
 def die(bot, user, chan, realtarget, *args):
        for botitem in bot.parent.bots.itervalues():
                for chan in botitem.chans: