fix traceback when joining a room without a nick. Fixes #3979

This commit is contained in:
Yann Leboulanger 2008-06-01 08:44:03 +00:00
parent f604ed373a
commit 5a459104d5
1 changed files with 2 additions and 0 deletions

View File

@ -2750,6 +2750,8 @@ class Interface:
def join_gc_room(self, account, room_jid, nick, password, minimize=False,
is_continued=False):
'''joins the room immediately'''
if not nick:
nick = gajim.nicks[account]
if self.msg_win_mgr.has_window(room_jid, account) and \
gajim.gc_connected[account][room_jid]:
gc_ctrl = self.msg_win_mgr.get_gc_control(room_jid, account)