diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-07 15:09:39 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-07 15:09:39 +0100 |
commit | d6b8ca50f2c046aa1248173f453b3804f40c479a (patch) | |
tree | 9a6d64a2c5a6c664a0f32416b53bed96f7073603 /src/plugin.py | |
parent | 1f3fafe15569c50fc877b5b24209e1d1214ae97a (diff) | |
download | poezio-d6b8ca50f2c046aa1248173f453b3804f40c479a.tar.gz poezio-d6b8ca50f2c046aa1248173f453b3804f40c479a.tar.bz2 poezio-d6b8ca50f2c046aa1248173f453b3804f40c479a.tar.xz poezio-d6b8ca50f2c046aa1248173f453b3804f40c479a.zip |
Remove first&last and only use "position" in plugins events
Diffstat (limited to 'src/plugin.py')
-rw-r--r-- | src/plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugin.py b/src/plugin.py index 0b4f3f3a..80bc4dfc 100644 --- a/src/plugin.py +++ b/src/plugin.py @@ -85,8 +85,8 @@ class BasePlugin(object, metaclass=SafetyMetaclass): 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, first=True, last=False, position=None): - return self.plugin_manager.add_poezio_event_handler(self.__module__, event_name, handler, first, last, position) + 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) |