don't ask nick when we want to join a room in which we already are

This commit is contained in:
Yann Leboulanger 2006-07-29 20:54:17 +00:00
parent ccc942fcbb
commit 98928886ef
1 changed files with 5 additions and 0 deletions

View File

@ -959,6 +959,11 @@ class JoinGroupchatWindow:
'''automatic is a dict like {'invities': []} '''automatic is a dict like {'invities': []}
If automatic is not empty, this means room must be automaticaly configured If automatic is not empty, this means room must be automaticaly configured
and when done, invities must be automatically invited''' and when done, invities must be automatically invited'''
if server and room:
jid = room + '@' + server
if jid in gajim.gc_connected[account] and gajim.gc_connected[account][jid]:
ErrorDialog(_('You are already in room %s') % jid)
raise RuntimeError, 'You are already in this room'
self.account = account self.account = account
self.automatic = automatic self.automatic = automatic
if nick == '': if nick == '':