mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +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:
|
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:
|
||||||
|
5
world.py
5
world.py
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user