when we receive a 505 presence error we show the error pixmap

This commit is contained in:
Yann Leboulanger 2005-05-24 21:32:52 +00:00
parent a2f5be54ec
commit 4338bc348f
1 changed files with 8 additions and 3 deletions

View File

@ -281,14 +281,19 @@ class Connection:
errcode = prs.getErrorCode()
if errcode == '409': #conflict : Nick Conflict
self.dispatch('ERROR', errmsg)
elif errcode == '502': # Internal Timeout:
self.dispatch('NOTIFY', (prs.getFrom().getStripped(),
'error', errmsg, prs.getFrom().getResource(), prio, keyID,
prs.getRole(), prs.getAffiliation(), prs.getJid(),
prs.getReason(), prs.getActor(), prs.getStatusCode()))
else:
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, \
prs.getFrom().getResource(), prio, keyID, prs.getRole(), \
prs.getAffiliation(), prs.getJid(), prs.getReason(), \
self.dispatch('NOTIFY', (prs.getFrom().getStripped(), show, status,
prs.getFrom().getResource(), prio, keyID, prs.getRole(),
prs.getAffiliation(), prs.getJid(), prs.getReason(),
prs.getActor(), prs.getStatusCode()))
# END presenceCB