Author: asterix
Date: 2008-06-01 10:44:03 +0200 (Sun, 01 Jun 2008)
New Revision: 9730
Modified:
trunk/src/gajim.py
Log:
fix traceback when joining a room without a nick. Fixes #3979
Modified: trunk/src/gajim.py
===================================================================
--- trunk/src/gajim.py 2008-05-31 22:13:57 UTC (rev 9729)
+++ trunk/src/gajim.py 2008-06-01 08:44:03 UTC (rev 9730)
@@ -2750,6 +2750,8 @@
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)