diff options
author | TingPing <tngpng@gmail.com> | 2013-04-25 04:51:19 -0300 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-04-25 04:51:19 -0300 |
commit | a39f8ea71f3c34b60949421e3385e7ed980411b8 (patch) | |
tree | 9d2052d9e1a048a8994523d0c530e8ce0b007798 /src/fe-gtk | |
parent | 4ad9a69aebf43ba4bbb1589499ff708a075ce366 (diff) |
Do not allow blank realname in preferences
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/setup.c | 6 |
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) |