mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
Remove leftover world.commands and world.whois_handlers
This commit is contained in:
parent
fb496554a6
commit
7338314e70
@ -372,11 +372,6 @@ def unload(irc, source, args):
|
||||
if not hookfuncs:
|
||||
del world.hooks[hookname]
|
||||
|
||||
# Remove whois handlers too.
|
||||
for f in world.whois_handlers:
|
||||
if f.__module__ == name:
|
||||
world.whois_handlers.remove(f)
|
||||
|
||||
# Call the die() function in the plugin, if present.
|
||||
if hasattr(pl, 'die'):
|
||||
try:
|
||||
|
5
world.py
5
world.py
@ -14,12 +14,11 @@ testing = True
|
||||
# Sets the default protocol module to use with tests.
|
||||
testing_ircd = 'inspircd'
|
||||
|
||||
|
||||
commands = defaultdict(list)
|
||||
# Statekeeping for our hooks list, IRC objects, loaded plugins, and initialized
|
||||
# service bots.
|
||||
hooks = defaultdict(list)
|
||||
networkobjects = {}
|
||||
plugins = {}
|
||||
whois_handlers = []
|
||||
services = {}
|
||||
|
||||
started = threading.Event()
|
||||
|
Loading…
Reference in New Issue
Block a user