when we receive a 505 presence error we show the error pixmap
This commit is contained in:
parent
a2f5be54ec
commit
4338bc348f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue