From a29c12a8b6b1bcefb0caccfe8c4428f0f0c83500 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 4 Sep 2005 17:47:36 +0000 Subject: [PATCH] add a comment --- src/common/connection.py | 5 +---- src/gajim.py | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index fe4cd6cf5..683934b5f 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -382,10 +382,7 @@ class Connection: elif errcode == '409': # nick conflict self.dispatch('ERROR', (_('Unable to join room'), _('Your desired nickname is in use or registered by another user.'))) - else: - #FIXME: wtf is ERROR_ANSWER? maybe I should handle there? - #some comments in the code ARE VITAL ppl :( :( :( - #other ppl read your code. do not make their life miserable + else: # print in Groupchat window the error self.dispatch('ERROR_ANSWER', ('', prs.getFrom().getStripped(), errmsg, errcode)) if not ptype or ptype == 'unavailable': diff --git a/src/gajim.py b/src/gajim.py index 5e90a1355..1419ef3bb 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -159,6 +159,7 @@ class Interface: gajim.connections[account].build_http_auth_answer(data[2], answer) def handle_event_error_answer(self, account, array): + #('ERROR_ANSWER', account, (id, jid_from. errmsg, errcode)) id, jid_from, errmsg, errcode = array if unicode(errcode) in ['403', '406'] and id: # show the error dialog @@ -185,7 +186,7 @@ class Interface: (jid_from, file_props)) conn.disconnect_transfer(file_props) return - #('ERROR_ANSWER', account, (id, jid_from. errmsg, errcode)) + if jid_from in self.windows[account]['gc']: self.windows[account]['gc'][jid_from].print_conversation( _('Error %s: %s') % (array[2], array[1]), jid_from)