Skip to content
Snippets Groups Projects
Commit 5a910155 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

errors from groupchats are catched and printed in groupchat windows

parent 6b0e7d09
No related branches found
No related tags found
No related merge requests found
......@@ -277,6 +277,10 @@ class Interface:
def handle_event_msgerror(self, account, array):
#('MSGERROR', account, (user, error_code, error_msg, msg, time))
jid = array[0].split('/')[0]
if jid in self.windows[account]['gc']:
self.windows[account]['gc'][jid].print_conversation('Error %s: %s' % \
(array[1], array[2]), jid, tim = array[4])
return
if jid.find('@') <= 0:
jid = jid.replace('@', '')
self.roster.on_message(jid, _('error while sending') + \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment