3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +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: if not hookfuncs:
del world.hooks[hookname] 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. # Call the die() function in the plugin, if present.
if hasattr(pl, 'die'): if hasattr(pl, 'die'):
try: try:

View File

@ -14,12 +14,11 @@ testing = True
# Sets the default protocol module to use with tests. # Sets the default protocol module to use with tests.
testing_ircd = 'inspircd' testing_ircd = 'inspircd'
# Statekeeping for our hooks list, IRC objects, loaded plugins, and initialized
commands = defaultdict(list) # service bots.
hooks = defaultdict(list) hooks = defaultdict(list)
networkobjects = {} networkobjects = {}
plugins = {} plugins = {}
whois_handlers = []
services = {} services = {}
started = threading.Event() started = threading.Event()