From d960006de4e68dfa1d278030f2c4d9bfa9132f01 Mon Sep 17 00:00:00 2001 From: TingPing Date: Thu, 17 Oct 2013 23:43:58 -0400 Subject: Add option to auto +x on connect --- src/common/cfgfiles.c | 1 + src/common/hexchat.h | 1 + src/common/inbound.c | 2 ++ 3 files changed, 4 insertions(+) (limited to 'src/common') 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') { -- cgit 1.4.1