mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Simplified quit.
This commit is contained in:
parent
a7ba5a0f25
commit
11908f5f2c
11
src/Owner.py
11
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):
|
||||
|
Loading…
Reference in New Issue
Block a user