summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-27 22:17:32 +0200
committermathieui <mathieui@mathieui.net>2012-04-27 22:17:32 +0200
commit02ad8d4f1c91c9d2ca3b09b7a0e0e132e1809e68 (patch)
treea4fad49d9784cca40ddc6e570f04dcad942f702c /src/core.py
parent774ed40e741048ac5afc0fad3ecc7bafb80efc70 (diff)
downloadpoezio-02ad8d4f1c91c9d2ca3b09b7a0e0e132e1809e68.tar.gz
poezio-02ad8d4f1c91c9d2ca3b09b7a0e0e132e1809e68.tar.bz2
poezio-02ad8d4f1c91c9d2ca3b09b7a0e0e132e1809e68.tar.xz
poezio-02ad8d4f1c91c9d2ca3b09b7a0e0e132e1809e68.zip
New roster attributes and new subscription events
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index eb7d9e89..228c32db 100644
--- a/src/core.py
+++ b/src/core.py
@@ -92,6 +92,9 @@ class Core(object):
self.events = events.EventHandler()
self.xmpp = singleton.Singleton(connection.Connection)
self.xmpp.core = self
+ roster.set_node(self.xmpp.client_roster)
+ roster.set_mucs(self.xmpp.plugin['xep_0045'].rooms)
+ roster.set_self_jid(self.xmpp.boundjid.bare)
self.paused = False
self.remote_fifo = None
# a unique buffer used to store global informations
@@ -194,7 +197,10 @@ class Core(object):
self.xmpp.add_event_handler("got_offline" , self.on_got_offline)
self.xmpp.add_event_handler("roster_update", self.on_roster_update)
self.xmpp.add_event_handler("changed_status", self.on_presence)
- self.xmpp.add_event_handler("changed_subscription", self.on_changed_subscription)
+ self.xmpp.add_event_handler("roster_subscription_request", self.on_subscription_request)
+ self.xmpp.add_event_handler("roster_subscription_authorized", self.on_subscription_authorized)
+ self.xmpp.add_event_handler("roster_subscription_remove", self.on_subscription_remove)
+ self.xmpp.add_event_handler("roster_subscription_removed", self.on_subscription_removed)
self.xmpp.add_event_handler("message_xform", self.on_data_form)
self.xmpp.add_event_handler("chatstate_active", self.on_chatstate_active)
self.xmpp.add_event_handler("chatstate_composing", self.on_chatstate_composing)