From 438ab414ff76da29ad062a3066af36d431434c16 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Tue, 12 May 2015 22:33:39 -0500 Subject: [PATCH] use bot.die() over bot.disconnect() --- dr_botzo/ircbot/bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dr_botzo/ircbot/bot.py b/dr_botzo/ircbot/bot.py index ede76e9..46ff879 100644 --- a/dr_botzo/ircbot/bot.py +++ b/dr_botzo/ircbot/bot.py @@ -492,8 +492,7 @@ class IRCBot(irc.client.SimpleIRCClient): del plugin del sys.modules[path] - self.disconnect("Shutting down...") - sys.exit() + self.die(msg="Shutting down...") class Channel(object):