summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-04-25 04:51:19 -0300
committerTingPing <tngpng@gmail.com>2013-04-25 04:51:19 -0300
commita39f8ea71f3c34b60949421e3385e7ed980411b8 (patch)
tree9d2052d9e1a048a8994523d0c530e8ce0b007798 /src/fe-gtk
parent4ad9a69aebf43ba4bbb1589499ff708a075ce366 (diff)
Do not allow blank realname in preferences
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index 2b4e9b73..70e82c9a 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -2241,6 +2241,12 @@ setup_apply (struct hexchatprefs *pr)
 	}
 #endif
 
+	if (prefs.hex_irc_real_name[0] == 0)
+	{
+		fe_message (_("The Realname option cannot be left blank. Defaulting back to \"realname\"."), FE_MSG_WARN);
+		strcpy (prefs.hex_irc_real_name, "realname");
+	}
+	
 	setup_apply_real (new_pix, do_ulist, do_layout);
 
 	if (noapply)