Fixed the autorejoin bug with overlimited MUC. Fixes #5678

This commit is contained in:
Alexander Cherniuk 2010-03-28 15:36:51 +03:00
parent 5f2b217fd6
commit 36ea39e74a
1 changed files with 5 additions and 4 deletions

View File

@ -1767,6 +1767,7 @@ ConnectionCaps, ConnectionHandlersBase, ConnectionJingle):
self.dispatch('NOTIFY', (jid_stripped, 'error', errmsg, resource,
prio, keyID, timestamp, None))
elif (errcode == '503'):
if gc_control is None or gc_control.autorejoin is None:
# maximum user number reached
self.dispatch('ERROR', (_('Unable to join group chat'),
_('Maximum number of users for %s has been reached') % \