diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-07 00:28:47 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-07 00:28:47 +0000 |
commit | 6b92b3cffd9b976018b7c68f2a2b3d0b5880e9e6 (patch) | |
tree | 61eee9cbaf39670abbe758fa10793f80fe6dd082 /src/connection.py | |
parent | 6796ebd99867bae16dd4bbaa23ec23a6105b0abc (diff) | |
download | poezio-6b92b3cffd9b976018b7c68f2a2b3d0b5880e9e6.tar.gz poezio-6b92b3cffd9b976018b7c68f2a2b3d0b5880e9e6.tar.bz2 poezio-6b92b3cffd9b976018b7c68f2a2b3d0b5880e9e6.tar.xz poezio-6b92b3cffd9b976018b7c68f2a2b3d0b5880e9e6.zip |
Begin of a /whois command. Also, ALSMO fixed 1710
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 17 |
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) |