3
0
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:
James Lu 2016-05-21 23:01:09 -07:00
parent fb496554a6
commit 7338314e70
2 changed files with 2 additions and 8 deletions

View File

@ -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:

View File

@ -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()