From 11908f5f2c9e5165d5301fb595b276930147831e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 15 Jan 2004 12:55:37 +0000 Subject: [PATCH] Simplified quit. --- src/Owner.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Owner.py b/src/Owner.py index 60d8f9f4f..c1a21aa14 100644 --- a/src/Owner.py +++ b/src/Owner.py @@ -42,6 +42,7 @@ import gc import os import imp import sys +import sets import linecache import log @@ -322,16 +323,6 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg): Exits the bot. """ - world.dying = True - for driver in drivers._drivers.itervalues(): - driver.die() - killed = sets.Set() - for irc in world.ircs[:]: - # The following is so callbacks don't get killed multiple times - # when the Relay plugin is loaded: - if id(irc.callbacks) not in killed: - killed.add(id(irc.callbacks)) - irc.die() raise SystemExit, 'Quitting because I was told by %s' % msg.prefix def flush(self, irc, msg, args):