diff options
author | TingPing <tingping@tingping.se> | 2013-10-17 23:43:58 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-10-17 23:43:58 -0400 |
commit | d960006de4e68dfa1d278030f2c4d9bfa9132f01 (patch) | |
tree | 2247d0b650dd444170f02e02904d25d04d984363 /src | |
parent | cf5e2f273f67178afa67f7974e4c077bf684a76b (diff) |
Add option to auto +x on connect
Diffstat (limited to 'src')
-rw-r--r-- | src/common/cfgfiles.c | 1 | ||||
-rw-r--r-- | src/common/hexchat.h | 1 | ||||
-rw-r--r-- | src/common/inbound.c | 2 |
3 files changed, 4 insertions, 0 deletions
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') { |