summaryrefslogtreecommitdiff
path: root/src/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.py')
-rw-r--r--src/connection.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/connection.py b/src/connection.py
index c2af4446..224b7632 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -105,10 +105,11 @@ class Connection(threading.Thread):
"""
registers handlers from xmpppy signals
"""
- self.client.RegisterHandler('iq', self.on_get_time, typ='get',
- ns="urn:xmpp:time")
- self.client.RegisterHandler('iq', self.on_get_version, typ='get',
- ns=xmpp.NS_VERSION)
+ # self.client.RegisterHandler('iq', self.on_get_time, typ='get',
+ # ns="urn:xmpp:time")
+ self.client.RegisterHandler('iq', self.on_get_vcard)
+ # self.client.RegisterHandler('iq', self.on_get_version, typ='get',
+ # ns=xmpp.NS_VERSION)
self.client.RegisterHandler('presence', self.handler_presence)
self.client.RegisterHandler('message', self.handler_message)
@@ -212,3 +213,11 @@ class Connection(threading.Thread):
if not connection:
return
self.handler.emit('send-time', iq_obj=iq)
+
+ def on_get_vcard(self, connection, iq):
+ """
+ we received a vcard
+ """
+ return
+ from common import debug
+ debug('\n====\n%s\n\n' % iq)