summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-22 18:34:31 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-22 18:34:31 +0200
commitf5338e014aaf90fdf58b03313be9a7e32710d335 (patch)
tree15b4f938f3096b8dd52be9adb2a1c315673124d7 /src
parentfd47409e761ee158bedb5b13a46c486f24cbfec6 (diff)
Fix nick box setting
Diffstat (limited to 'src')
-rw-r--r--src/common/cfgfiles.c1
-rw-r--r--src/fe-gtk/maingui.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 24ad5ba7..e663e964 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -715,6 +715,7 @@ load_config (void)
 	prefs.hex_flood_msg_time = 5;
 	prefs.hex_flood_ctcp_time = 30;
 	prefs.hex_flood_ctcp_num = 5;
+	prefs.hex_gui_input_nick = 1;
 	prefs.hex_gui_topicbar = 1;
 	prefs.hex_gui_lagometer = 1;
 	prefs.hex_gui_throttlemeter = 1;
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index 5b2e7795..64ec02b7 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -3046,7 +3046,7 @@ mg_create_topwindow (session *sess)
 	if (!prefs.hex_gui_ulist_buttons)
 		gtk_widget_hide (sess->gui->button_box);
 
-	if (prefs.hex_gui_input_nick)
+	if (!prefs.hex_gui_input_nick)
 		gtk_widget_hide (sess->gui->nick_box);
 
 	mg_decide_userlist (sess, FALSE);
@@ -3149,7 +3149,7 @@ mg_create_tabwindow (session *sess)
 	if (!prefs.hex_gui_ulist_buttons)
 		gtk_widget_hide (sess->gui->button_box);
 
-	if (prefs.hex_gui_input_nick)
+	if (!prefs.hex_gui_input_nick)
 		gtk_widget_hide (sess->gui->nick_box);
 
 	mg_place_userlist_and_chanview (sess->gui);