mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 12:42:16 -05:00
Do not allow blank realname in preferences
This commit is contained in:
parent
4ad9a69aeb
commit
a39f8ea71f
@ -2241,6 +2241,12 @@ setup_apply (struct hexchatprefs *pr)
|
|||||||
}
|
}
|
||||||
#endif
|
#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);
|
setup_apply_real (new_pix, do_ulist, do_layout);
|
||||||
|
|
||||||
if (noapply)
|
if (noapply)
|
||||||
|
Loading…
Reference in New Issue
Block a user