<confirm/> must be included if it's a message instead of an IQ. Fixes #5690

This commit is contained in:
Alexander Cherniuk 2010-04-21 14:59:46 +03:00
parent 6d62571da3
commit 3353e0cb23
1 changed files with 1 additions and 1 deletions

View File

@ -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':