summaryrefslogtreecommitdiff
path: root/src/events.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-30 20:37:18 +0200
committermathieui <mathieui@mathieui.net>2014-04-30 20:37:18 +0200
commitd859ec2ea19654603075b556094c6b59aad8e73a (patch)
treee9c84ee768c0edb24f4f49695154eb8bad4f4e18 /src/events.py
parent4e4ab569cf07fabf76339eeace1f6694f3414eff (diff)
downloadpoezio-d859ec2ea19654603075b556094c6b59aad8e73a.tar.gz
poezio-d859ec2ea19654603075b556094c6b59aad8e73a.tar.bz2
poezio-d859ec2ea19654603075b556094c6b59aad8e73a.tar.xz
poezio-d859ec2ea19654603075b556094c6b59aad8e73a.zip
Add a 'tab_change' event
Diffstat (limited to 'src/events.py')
-rw-r--r--src/events.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/events.py b/src/events.py
index 71687d14..50711022 100644
--- a/src/events.py
+++ b/src/events.py
@@ -45,6 +45,7 @@ class EventHandler(object):
'muc_ban': [],
'send_normal_presence': [],
'ignored_private': [],
+ 'tab_change': [],
}
def add_event_handler(self, name, callback, position=0):
@@ -72,6 +73,7 @@ class EventHandler(object):
if callbacks is None:
log.debug('%s: No such event.', name)
return
+ log.debug('Event %s triggered, callbacks: %s', name, callbacks)
for callback in callbacks:
callback(*args, **kwargs)