From 3353e0cb238f1decbb30e331b18d7ed69e9fd071 Mon Sep 17 00:00:00 2001
From: Alexander Cherniuk <ts33kr@gmail.com>
Date: Wed, 21 Apr 2010 14:59:46 +0300
Subject: [PATCH] <confirm/> must be included if it's a message instead of an
 IQ. Fixes #5690

---
 src/common/connection_handlers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index eba408ce66..bf95f9c5ca 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -992,7 +992,7 @@ ConnectionCaps, ConnectionHandlersBase, ConnectionJingle):
         if answer == 'yes':
             confirm = iq_obj.getTag('confirm')
             reply = iq_obj.buildReply('result')
-            if iq_obj.getType() == 'message':
+            if iq_obj.getName() == 'message':
                 reply.addChild(node=confirm)
             self.connection.send(reply)
         elif answer == 'no':
-- 
GitLab