Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2005-11-18 02:27:59 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog doc/example.conf doc/readme.features
include/ircd_features.h ircd/channel.c ircd/ircd_features.c
Log message:
Add HIS_MODEWHO feature.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.37 ircu2.10/ChangeLog:1.710.2.38
--- ircu2.10/ChangeLog:1.710.2.37 Wed Nov 16 18:52:59 2005
+++ ircu2.10/ChangeLog Thu Nov 17 18:27:48 2005
@@ -1,3 +1,18 @@
+2005-11-15 Brian Cline <[EMAIL PROTECTED]>
+
+ * 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 <[EMAIL PROTECTED]>
* doc/example.conf (Features): Mention ZANNELS default.
Index: ircu2.10/doc/example.conf
diff -u ircu2.10/doc/example.conf:1.61.2.2 ircu2.10/doc/example.conf:1.61.2.3
--- ircu2.10/doc/example.conf:1.61.2.2 Wed Nov 16 18:52:59 2005
+++ ircu2.10/doc/example.conf Thu Nov 17 18:27:49 2005
@@ -854,6 +854,7 @@
# "HIS_WHOIS_LOCALCHAN" = "TRUE";
# "HIS_WHO_SERVERNAME" = "TRUE";
# "HIS_WHO_HOPCOUNT" = "TRUE";
+# "HIS_MODEWHO" = "TRUE";
# "HIS_BANWHO" = "TRUE";
# "HIS_KILLWHO" = "TRUE";
# "HIS_REWRITE" = "TRUE";
Index: ircu2.10/doc/readme.features
diff -u ircu2.10/doc/readme.features:1.19.2.1
ircu2.10/doc/readme.features:1.19.2.2
--- ircu2.10/doc/readme.features:1.19.2.1 Wed Nov 16 18:52:59 2005
+++ ircu2.10/doc/readme.features Thu Nov 17 18:27:49 2005
@@ -679,6 +679,13 @@
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
Index: ircu2.10/include/ircd_features.h
diff -u ircu2.10/include/ircd_features.h:1.38.2.1
ircu2.10/include/ircd_features.h:1.38.2.2
--- ircu2.10/include/ircd_features.h:1.38.2.1 Wed Nov 16 18:23:27 2005
+++ ircu2.10/include/ircd_features.h Thu Nov 17 18:27:49 2005
@@ -20,7 +20,7 @@
*/
/** @file
* @brief Public interfaces and declarations for dealing with configurable
features.
- * @version $Id: ircd_features.h,v 1.38.2.1 2005/11/17 02:23:27 entrope Exp $
+ * @version $Id: ircd_features.h,v 1.38.2.2 2005/11/18 02:27:49 entrope Exp $
*/
struct Client;
@@ -140,6 +140,7 @@
FEAT_HIS_WHOIS_LOCALCHAN,
FEAT_HIS_WHO_SERVERNAME,
FEAT_HIS_WHO_HOPCOUNT,
+ FEAT_HIS_MODEWHO,
FEAT_HIS_BANWHO,
FEAT_HIS_KILLWHO,
FEAT_HIS_REWRITE,
Index: ircu2.10/ircd/channel.c
diff -u ircu2.10/ircd/channel.c:1.155.2.8 ircu2.10/ircd/channel.c:1.155.2.9
--- ircu2.10/ircd/channel.c:1.155.2.8 Wed Nov 16 18:23:27 2005
+++ ircu2.10/ircd/channel.c Thu Nov 17 18:27:49 2005
@@ -19,7 +19,7 @@
*/
/** @file
* @brief Channel management and maintenance
- * @version $Id: channel.c,v 1.155.2.8 2005/11/17 02:23:27 entrope Exp $
+ * @version $Id: channel.c,v 1.155.2.9 2005/11/18 02:27:49 entrope Exp $
*/
#include "config.h"
@@ -1591,7 +1591,10 @@
/* 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;
Index: ircu2.10/ircd/ircd_features.c
diff -u ircu2.10/ircd/ircd_features.c:1.50.2.1
ircu2.10/ircd/ircd_features.c:1.50.2.2
--- ircu2.10/ircd/ircd_features.c:1.50.2.1 Wed Nov 16 18:23:27 2005
+++ ircu2.10/ircd/ircd_features.c Thu Nov 17 18:27:49 2005
@@ -18,7 +18,7 @@
*/
/** @file
* @brief Implementation of configurable feature support.
- * @version $Id: ircd_features.c,v 1.50.2.1 2005/11/17 02:23:27 entrope Exp $
+ * @version $Id: ircd_features.c,v 1.50.2.2 2005/11/18 02:27:49 entrope Exp $
*/
#include "config.h"
@@ -393,6 +393,7 @@
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),
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches