X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/e6b601930f87d83511f1af144d2ad40ea3162e17..54c084bccc38b14298a744c348b43e92819b78a2:/modules/control.py diff --git a/modules/control.py b/modules/control.py index 91b0eff..10aa908 100644 --- a/modules/control.py +++ b/modules/control.py @@ -26,10 +26,11 @@ from collections import deque @lib.hook(('die','restart'), needchan=False, glevel=lib.MANAGER) @lib.help(None, "stops the bot") def die(bot, user, chan, realtarget, *args): + quitmsg = ' '.join(args) for botitem in bot.parent.bots.itervalues(): for chan in botitem.chans: - chan.fastmsg("Bot is restarting! %s" % ' '.join(args)) - bot.conn.send("QUIT :Restarting.") + chan.fastmsg("Bot is restarting! %s" % (quitmsg)) + bot.conn.send("QUIT :Restarting. %s" % (quitmsg)) sys.exit(0) os._exit(0)