[Florob] handel remote-server-not-found MUC error. Fixes #5309

This commit is contained in:
Yann Leboulanger 2009-10-23 16:49:33 +02:00
parent 503aebd919
commit 4305882303
1 changed files with 2 additions and 1 deletions

View File

@ -2302,7 +2302,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
# we are banned
self.dispatch('ERROR', (_('Unable to join group chat'),
_('You are banned from group chat %s.') % room_jid))
elif (errcode == '404') or (errcon == 'item-not-found'):
elif (errcode == '404') or (errcon in ('item-not-found',
'remote-server-not-found')):
if gc_control is None or gc_control.autorejoin is None:
# group chat does not exist
self.dispatch('ERROR', (_('Unable to join group chat'),