diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-09 14:02:17 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-09 14:02:17 +0100 |
commit | 98b9506983b57d7da1f5543f8cefd68dca0827ae (patch) | |
tree | 790c3977931a8a1075ec26058f44d4ca42e0500f /src/plugin.py | |
parent | 04c283c55188bda7d0cdd87c345cbe5603552f09 (diff) | |
download | poezio-98b9506983b57d7da1f5543f8cefd68dca0827ae.tar.gz poezio-98b9506983b57d7da1f5543f8cefd68dca0827ae.tar.bz2 poezio-98b9506983b57d7da1f5543f8cefd68dca0827ae.tar.xz poezio-98b9506983b57d7da1f5543f8cefd68dca0827ae.zip |
Remove poezio_event_handler to keep only event_handler
Diffstat (limited to 'src/plugin.py')
-rw-r--r-- | src/plugin.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugin.py b/src/plugin.py index 80bc4dfc..c87ba2f1 100644 --- a/src/plugin.py +++ b/src/plugin.py @@ -79,14 +79,8 @@ class BasePlugin(object, metaclass=SafetyMetaclass): 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) + def add_event_handler(self, event_name, handler, position=0): + return self.plugin_manager.add_event_handler(self.__module__, event_name, handler, position) def del_event_handler(self, event_name, handler): return self.plugin_manager.del_event_handler(self.__module__, event_name, handler) - - def add_poezio_event_handler(self, event_name, handler, position=0): - return self.plugin_manager.add_poezio_event_handler(self.__module__, event_name, handler, position) - - def del_poezio_event_handler(self, event_name, handler): - return self.plugin_manager.del_poezio_event_handler(self.__module__, event_name, handler) |