changeset 9fd207639cc3 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=9fd207639cc3 description: [Gabriel] add <confirm> tag when we reply to XEP-0070 request when it's a message. Fixes #5690
diffstat:
src/common/connection_handlers.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 9c7128886a69 -r 9fd207639cc3 src/common/connection_handlers.py --- a/src/common/connection_handlers.py Wed Apr 07 21:34:57 2010 +0200 +++ b/src/common/connection_handlers.py Fri Apr 09 15:11:04 2010 +0200 @@ -990,10 +990,14 @@ if not self.connection or self.connected < 2: return if answer == 'yes': - self.connection.send(iq_obj.buildReply('result')) + confirm = iq_obj.getTag('confirm') + reply = iq_obj.buildReply('result') + if iq_obj.getType() == 'message': + reply.addChild(node=confirm) + self.connection.send(reply) elif answer == 'no': err = common.xmpp.Error(iq_obj, - common.xmpp.protocol.ERR_NOT_AUTHORIZED) + common.xmpp.protocol.ERR_NOT_AUTHORIZED) self.connection.send(err)
def _HttpAuthCB(self, con, iq_obj):