diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-09 18:38:56 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-09 18:38:56 +0100 |
commit | e8e4b0bb4c9b98f64934cebcc3e4faff63b1f562 (patch) | |
tree | 1a8d5bd1cb1a7ff41acb949080bf0b11ccf6fe72 /src/events.py | |
parent | 0e10c04cce83b7b3c0bedd128457d797b605bdbe (diff) | |
download | poezio-e8e4b0bb4c9b98f64934cebcc3e4faff63b1f562.tar.gz poezio-e8e4b0bb4c9b98f64934cebcc3e4faff63b1f562.tar.bz2 poezio-e8e4b0bb4c9b98f64934cebcc3e4faff63b1f562.tar.xz poezio-e8e4b0bb4c9b98f64934cebcc3e4faff63b1f562.zip |
Plugin docstrings
Diffstat (limited to 'src/events.py')
-rw-r--r-- | src/events.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/events.py b/src/events.py index 22d60ddf..cd45448f 100644 --- a/src/events.py +++ b/src/events.py @@ -20,7 +20,6 @@ class EventHandler(object): """ def __init__(self): self.events = { - # when you are highlighted in a muc tab 'highlight': [], 'muc_say': [], 'conversation_say': [], @@ -35,7 +34,7 @@ class EventHandler(object): Add a callback to a given event. Note that if that event name doesn’t exist, it just returns False. If it was successfully added, it returns True - position: 0 means insert a the beginning, -1 means end + position: 0 means insert at the beginning, -1 means end """ if name not in self.events: return False @@ -49,7 +48,7 @@ class EventHandler(object): def trigger(self, name, *args, **kwargs): """ - Call all the callbacks associated to the given event name + Call all the callbacks associated to the given event name. """ callbacks = self.events[name] for callback in callbacks: |