Do not allow blank realname in preferences

This commit is contained in:
TingPing 2013-04-25 04:51:19 -03:00
parent 4ad9a69aeb
commit a39f8ea71f

View File

@ -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)