auto_join_bookmarks only join non-opened groupchats. Opened one are already auto-joined on re-connection. Fixes #3891

This commit is contained in:
Yann Leboulanger 2008-05-30 10:26:33 +00:00
parent 685707e2e0
commit 8973b91070
1 changed files with 3 additions and 2 deletions

View File

@ -3142,8 +3142,9 @@ class Interface:
for bm in gajim.connections[account].bookmarks:
if bm['autojoin'] in ('1', 'true'):
jid = bm['jid']
if not gajim.gc_connected[account].has_key(jid) or\
not gajim.gc_connected[account][jid]:
# Only join non-opened groupchats. Opened one are already
# auto-joined on re-connection
if not gajim.gc_connected[account].has_key(jid):
# we are not already connected
minimize = bm['minimize'] in ('1', 'true')
gajim.interface.join_gc_room(account, jid, bm['nick'],