summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-02-25 18:58:33 +0100
committermathieui <mathieui@mathieui.net>2012-02-25 18:58:33 +0100
commit73c8206cc7926757ccc963ede581989078e6c780 (patch)
tree35218687d8250382d2cd6bbc25becba081fd430a /src/core.py
parente3f0faf6d0dfd8d3b450b06aebf90614061245c9 (diff)
downloadpoezio-73c8206cc7926757ccc963ede581989078e6c780.tar.gz
poezio-73c8206cc7926757ccc963ede581989078e6c780.tar.bz2
poezio-73c8206cc7926757ccc963ede581989078e6c780.tar.xz
poezio-73c8206cc7926757ccc963ede581989078e6c780.zip
Fourth of #2336 (fixes #2336)
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 79dce53a..b9b40929 100644
--- a/src/core.py
+++ b/src/core.py
@@ -202,7 +202,8 @@ class Core(object):
self.xmpp.add_event_handler("chatstate_gone", self.on_chatstate_gone)
self.xmpp.add_event_handler("chatstate_inactive", self.on_chatstate_inactive)
self.xmpp.add_event_handler("attention", self.on_attention)
- self.xmpp.register_handler(Callback('ALL THE STANZAS', connection.MatchAll(None), self.incoming_stanza))
+ self.all_stanzas = Callback('custom matcher', connection.MatchAll(None), self.incoming_stanza)
+ self.xmpp.register_handler(self.all_stanzas)
self.initial_joins = []