don't show error messages without a <body>. Fixes #6756

This commit is contained in:
Yann Leboulanger 2011-03-05 13:17:32 +01:00
parent 7fb3ec1c1d
commit 0a48491a39
1 changed files with 2 additions and 0 deletions

View File

@ -1008,6 +1008,8 @@ class ConnectionHandlersBase:
obj.session.control.conv_textview.hide_xep0184_warning(obj.id_)
if obj.mtype == 'error':
if not obj.msgtxt:
return True
self.dispatch_error_message(obj.stanza, obj.msgtxt,
obj.session, obj.fjid, obj.timestamp)
return True