summaryrefslogtreecommitdiff
path: root/src/plugin.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-10-02 13:21:51 +0200
committermathieui <mathieui@mathieui.net>2011-10-02 13:21:51 +0200
commitd5898965993b63ee719df48cca5d48b0a0402f85 (patch)
tree42d5c3880ce104fab4784f1678bd9ebbb5b796ca /src/plugin.py
parentb7279678df346488c8a0454b7d5d372d2236ce65 (diff)
downloadpoezio-d5898965993b63ee719df48cca5d48b0a0402f85.tar.gz
poezio-d5898965993b63ee719df48cca5d48b0a0402f85.tar.bz2
poezio-d5898965993b63ee719df48cca5d48b0a0402f85.tar.xz
poezio-d5898965993b63ee719df48cca5d48b0a0402f85.zip
Adds a way to delete the commands without reloading the plugin
Diffstat (limited to 'src/plugin.py')
-rw-r--r--src/plugin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py
index a5aae1f6..8d873419 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -74,6 +74,9 @@ class BasePlugin(object, metaclass=SafetyMetaclass):
def add_command(self, name, handler, help, completion=None):
return self.plugin_manager.add_command(self.__module__, name, handler, help, completion)
+ def del_command(self, name):
+ return self.plugin_manager.del_command(self.__module__, name)
+
def add_event_handler(self, event_name, handler):
return self.plugin_manager.add_event_handler(self.__module__, event_name, handler)