diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-09 20:05:00 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-09 20:05:00 +0000 |
commit | fc99b9e8625af9ec2916ed641de0dc3b093a7cea (patch) | |
tree | 66973641b745a8897e488be68d50517a524ae440 /src/multiuserchat.py | |
parent | 31ab762ab6ced58c055b3225342f21d14cf0aafd (diff) | |
download | poezio-fc99b9e8625af9ec2916ed641de0dc3b093a7cea.tar.gz poezio-fc99b9e8625af9ec2916ed641de0dc3b093a7cea.tar.bz2 poezio-fc99b9e8625af9ec2916ed641de0dc3b093a7cea.tar.xz poezio-fc99b9e8625af9ec2916ed641de0dc3b093a7cea.zip |
Fix a little crash, fix the authentication process (was not working with prosody, because it was wrong), fix the sending of the vcard (was broken too, but ejabberd doesn't complain...)
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r-- | src/multiuserchat.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py index 158f7e84..8fb510f7 100644 --- a/src/multiuserchat.py +++ b/src/multiuserchat.py @@ -74,7 +74,7 @@ class VcardSender(threading.Thread): if image: vcard['PHOTO'] = {"TYPE":mime_type,"BINVAL":image} iq = xmpp.Iq(typ = 'set') - iq2 = iq.setTag(xmpp.NS_VCARD + ' vCard') + iq2 = iq.addChild('vCard', namespace=xmpp.NS_VCARD) for i in vcard: if i == 'jid': continue @@ -91,7 +91,7 @@ class VcardSender(threading.Thread): iq2.addChild(i).setData(vcard[i]) self.connection.send(iq) iq = xmpp.Iq(typ = 'set') - iq2 = iq.setTag(xmpp.NS_VCARD_UPDATE) + iq2 = iq.addChild('vCard', namespace=xmpp.NS_VCARD_UPDATE) iq2.addChild('PHOTO').setData(sha1) self.connection.send(iq) @@ -316,7 +316,7 @@ class MultiUserChat(object): qp = iq_obj.getTag('query') if config.get('send_poezio_info', 'true') == 'true': qp.setTagData('name', 'Poezio') - qp.setTagData('version', '0.7 dev') + qp.setTagData('version', '0.6.3 dev') else: qp.setTagData('name', 'Unknown') qp.setTagData('version', 'Unknown') |