diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index f0784ff5..b6305cc2 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -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}, diff --git a/src/common/hexchat.h b/src/common/hexchat.h index 5825d217..e5d8a654 100644 --- a/src/common/hexchat.h +++ b/src/common/hexchat.h @@ -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; diff --git a/src/common/inbound.c b/src/common/inbound.c index 1dc0c978..4c1556f2 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -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') {