summaryrefslogtreecommitdiff
path: root/src/plugin_manager.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-10-01 23:48:42 +0200
committermathieui <mathieui@mathieui.net>2011-10-01 23:48:42 +0200
commited87f26db763432505072eb5a2875f30fc4061d1 (patch)
treeab619266cddbebc3831318cc140419331dfb1966 /src/plugin_manager.py
parent28ef9d6003b0e1ea2c702e05a3f41de923b5b178 (diff)
downloadpoezio-ed87f26db763432505072eb5a2875f30fc4061d1.tar.gz
poezio-ed87f26db763432505072eb5a2875f30fc4061d1.tar.bz2
poezio-ed87f26db763432505072eb5a2875f30fc4061d1.tar.xz
poezio-ed87f26db763432505072eb5a2875f30fc4061d1.zip
Added a connect() function to the plugins API, for internal event
Diffstat (limited to 'src/plugin_manager.py')
-rw-r--r--src/plugin_manager.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin_manager.py b/src/plugin_manager.py
index df96e9ab..82be8632 100644
--- a/src/plugin_manager.py
+++ b/src/plugin_manager.py
@@ -69,6 +69,9 @@ class PluginManager(object):
del self.core.commands[command]
for event_name, handler in self.event_handlers[name]:
self.core.xmpp.del_event_handler(event_name, handler)
+ for event_name in self.core.internal_events:
+ if name in event_name:
+ del event_name[name]
self.plugins[name].unload()
del self.plugins[name]