changeset 94c1e2946304 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=94c1e2946304 description: make it clearer when groupchat messages have an error.
diffstat:
src/common/connection_handlers_events.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 27f73cff2dfd -r 94c1e2946304 src/common/connection_handlers_events.py --- a/src/common/connection_handlers_events.py Fri Jul 29 17:34:53 2011 +0200 +++ b/src/common/connection_handlers_events.py Fri Jul 29 18:26:21 2011 +0200 @@ -1008,6 +1008,11 @@ 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'