bugfix: when we have an error, we sane an error to the GUI, not a notify

This commit is contained in:
Yann Leboulanger 2005-05-11 15:14:43 +00:00
parent d98a451764
commit c22e2c5f7a
1 changed files with 2 additions and 3 deletions

View File

@ -264,9 +264,8 @@ class Connection:
if errcode == '409': #conflict : Nick Conflict
self.dispatch('ERROR', errmsg)
else:
self.dispatch('NOTIFY', (prs.getFrom().getStripped(), 'error', \
errmsg, prs.getFrom().getResource(), prio, keyID, None, None, \
None, None, None, None))
self.dispatch('ERROR_ANSWER', (prs.getFrom().getStripped(), errmsg,
errcode))
if ptype == 'available' or ptype == 'unavailable':
gajim.logger.write('status', status, prs.getFrom().getStripped(), show)
self.dispatch('NOTIFY', (prs.getFrom().getStripped(), show, status, \