fixed tb on server connect
This commit is contained in:
parent
9e044cbd4c
commit
8adeb33fa1
|
@ -354,8 +354,8 @@ class Connection:
|
||||||
errmsg = prs.getError()
|
errmsg = prs.getError()
|
||||||
errcode = prs.getErrorCode()
|
errcode = prs.getErrorCode()
|
||||||
if errcode == '409': #conflict: Nick Conflict
|
if errcode == '409': #conflict: Nick Conflict
|
||||||
self.dispatch('ERROR', _('Unable to join room'),
|
self.dispatch('ERROR', (_('Unable to join room'),
|
||||||
_('Server response:') + '\n' + errmsg)
|
_('Server response:') + '\n' + errmsg))
|
||||||
elif errcode == '502': # Internal Timeout:
|
elif errcode == '502': # Internal Timeout:
|
||||||
self.dispatch('NOTIFY', (prs.getFrom().getStripped().encode('utf8'),
|
self.dispatch('NOTIFY', (prs.getFrom().getStripped().encode('utf8'),
|
||||||
'error', errmsg, prs.getFrom().getResource().encode('utf8'),
|
'error', errmsg, prs.getFrom().getResource().encode('utf8'),
|
||||||
|
|
Loading…
Reference in New Issue