+2005-11-15 Brian Cline <brian.cline@gmail.com>
+
+ * doc/example.conf: Add new line for HIS_MODEWHO feature.
+
+ * doc/readme.features: Document new HIS_MODEWHO feature.
+
+ * include/ircd_features.h: Declare new HIS_MODEWHO feature.
+
+ * ircd/channel.c (modebuf_flush_int): Use new HIS_MODEWHO feature
+ to show or hide the server name that performed a channel mode change.
+
+ * ircd/ircd_features.c: Place new HIS_MODEWHO setting in the feature
+ table and give it a default value of true, which will hide the
+ originating server name.
+
2005-11-16 Michael Poole <mdpoole@troilus.org>
* doc/example.conf (Features): Mention ZANNELS default.
# "HIS_WHOIS_LOCALCHAN" = "TRUE";
# "HIS_WHO_SERVERNAME" = "TRUE";
# "HIS_WHO_HOPCOUNT" = "TRUE";
+# "HIS_MODEWHO" = "TRUE";
# "HIS_BANWHO" = "TRUE";
# "HIS_KILLWHO" = "TRUE";
# "HIS_REWRITE" = "TRUE";
As per UnderNet CFV-165, this replaces hopcount to a static 3 in
replies to /WHO.
+HIS_MODEWHO
+ * Type: boolean
+ * Default: TRUE
+
+As per UnderNet CFV-165, this doesn't show which server performed a channel
+mode change.
+
HIS_BANWHO
* Type: boolean
* Default: TRUE
FEAT_HIS_WHOIS_LOCALCHAN,
FEAT_HIS_WHO_SERVERNAME,
FEAT_HIS_WHO_HOPCOUNT,
+ FEAT_HIS_MODEWHO,
FEAT_HIS_BANWHO,
FEAT_HIS_KILLWHO,
FEAT_HIS_REWRITE,
/* Ok, if we were given the OPMODE flag, or its a server, hide the source.
*/
- if (mbuf->mb_dest & MODEBUF_DEST_OPMODE || IsServer(mbuf->mb_source) || IsMe(mbuf->mb_source))
+ if (feature_bool(FEAT_HIS_MODEWHO) &&
+ (mbuf->mb_dest & MODEBUF_DEST_OPMODE ||
+ IsServer(mbuf->mb_source) ||
+ IsMe(mbuf->mb_source)))
app_source = &his;
else
app_source = mbuf->mb_source;
F_B(HIS_WHOIS_LOCALCHAN, 0, 1, 0),
F_B(HIS_WHO_SERVERNAME, 0, 1, 0),
F_B(HIS_WHO_HOPCOUNT, 0, 1, 0),
+ F_B(HIS_MODEWHO, 0, 1, 0),
F_B(HIS_BANWHO, 0, 1, 0),
F_B(HIS_KILLWHO, 0, 1, 0),
F_B(HIS_REWRITE, 0, 1, 0),