make it clearer when groupchat messages have an error.

This commit is contained in:
Yann Leboulanger 2011-07-29 18:26:21 +02:00
parent 21b2448d14
commit 7d6bbdb38e
1 changed files with 5 additions and 0 deletions

View File

@ -1008,6 +1008,11 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
self.get_gc_control()
if self.gc_control and self.jid == self.fjid:
if self.mtype == 'error':
self.msgtxt = _('error while sending %(message)s ( %(error)s )'\
) % {'message': self.msgtxt,
'error': self.stanza.getErrorMsg()}
self.stanza.delChild('html')
# message from a gc without a resource
self.mtype = 'groupchat'