diff options
Diffstat (limited to 'poezio/events.py')
-rw-r--r-- | poezio/events.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/events.py b/poezio/events.py index 97d77626..15a308b4 100644 --- a/poezio/events.py +++ b/poezio/events.py @@ -3,13 +3,13 @@ # # Poezio is free software: you can redistribute it and/or modify # it under the terms of the zlib license. See the COPYING file. - """ Defines the EventHandler class. The list of available events is here: http://poezio.eu/doc/en/plugins.html#_poezio_events """ + class EventHandler(object): """ A class keeping a list of possible events that are triggered @@ -17,6 +17,7 @@ class EventHandler(object): associated with an event name, and whenever that event is triggered, the callback is called. """ + def __init__(self): self.events = { 'highlight': [], @@ -43,7 +44,7 @@ class EventHandler(object): 'send_normal_presence': [], 'ignored_private': [], 'tab_change': [], - } + } def add_event_handler(self, name, callback, position=0): """ |