From a39f8ea71f3c34b60949421e3385e7ed980411b8 Mon Sep 17 00:00:00 2001 From: TingPing Date: Thu, 25 Apr 2013 04:51:19 -0300 Subject: [PATCH] Do not allow blank realname in preferences --- src/fe-gtk/setup.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)