notify GUI about ERROR presences. Fixes #3667

This commit is contained in:
Yann Leboulanger 2008-08-03 19:11:03 +00:00
parent 615ed1be06
commit 0317d93561
1 changed files with 4 additions and 4 deletions

View File

@ -2121,12 +2121,12 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
elif ptype == 'error':
errmsg = prs.getError()
errcode = prs.getErrorCode()
if errcode == '502': # Internal Timeout:
self.dispatch('NOTIFY', (jid_stripped, 'error', errmsg, resource,
prio, keyID, timestamp, None))
else: # print in the window the error
if errcode != '502': # Internal Timeout:
# print in the window the error
self.dispatch('ERROR_ANSWER', ('', jid_stripped,
errmsg, errcode))
self.dispatch('NOTIFY', (jid_stripped, 'error', errmsg, resource, prio,
keyID, timestamp, None))
if ptype == 'unavailable' and jid_stripped in self.sessions:
# automatically terminate sessions that they haven't sent a thread ID in