Add option to auto +x on connect

This commit is contained in:
TingPing 2013-10-17 23:43:58 -04:00
parent cf5e2f273f
commit d960006de4
3 changed files with 4 additions and 0 deletions

View File

@ -516,6 +516,7 @@ const struct prefs vars[] =
{"irc_conf_mode", P_OFFINT (hex_irc_conf_mode), TYPE_BOOL},
{"irc_extra_hilight", P_OFFSET (hex_irc_extra_hilight), TYPE_STR},
{"irc_hide_version", P_OFFINT (hex_irc_hide_version), TYPE_BOOL},
{"irc_hidehost", P_OFFINT (hex_irc_hidehost), TYPE_BOOL},
{"irc_id_ntext", P_OFFSET (hex_irc_id_ntext), TYPE_STR},
{"irc_id_ytext", P_OFFSET (hex_irc_id_ytext), TYPE_STR},
{"irc_invisible", P_OFFINT (hex_irc_invisible), TYPE_BOOL},

View File

@ -208,6 +208,7 @@ struct hexchatprefs
unsigned int hex_input_tray_priv;
unsigned int hex_irc_auto_rejoin;
unsigned int hex_irc_conf_mode;
unsigned int hex_irc_hidehost;
unsigned int hex_irc_hide_version;
unsigned int hex_irc_invisible;
unsigned int hex_irc_logging;

View File

@ -1288,6 +1288,8 @@ set_default_modes (server *serv)
strcat (modes, "s");
if (prefs.hex_irc_invisible)
strcat (modes, "i");
if (prefs.hex_irc_hidehost)
strcat (modes, "x");
if (modes[1] != '\0')
{