CVSROOT    : /home/coder-com/cvs
Module     : ircu2.10
Branch tags: u2_10_11
Commit time: 2002-08-19 15:52:04 UTC

Modified files:
  Tag: u2_10_11
     ChangeLog doc/readme.features ircd/ircd_features.c

Log message:

Author: Kev <[EMAIL PROTECTED]>
Log message:

Feature names in ircd.conf used to be case insensitive.  Unfortunately,
the HIS_STATS_? features require that the feature names be case sensitive
in order for them to be configured properly.  If you are using lower-case
or mixed-case feature names in your ircd.conf, THIS WILL BREAK THEM.
Sorry, but this is the easiest way to fix the problem...

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.112 ircu2.10/ChangeLog:1.290.2.113
--- ircu2.10/ChangeLog:1.290.2.112      Sun Aug 11 19:29:58 2002
+++ ircu2.10/ChangeLog  Mon Aug 19 10:51:53 2002
@@ -1,3 +1,11 @@
+2002-08-19  Kevin L Mitchell  <[EMAIL PROTECTED]>
+
+       * doc/readme.features: document that feature names are
+       case-sensitive
+
+       * ircd/ircd_features.c (feature_desc): make feature names
+       case-sensitive
+
 2002-08-11  Kevin L Mitchell  <[EMAIL PROTECTED]>
 
        * doc/readme.log: correct a bug in the documentation--it's
Index: ircu2.10/doc/readme.features
diff -u ircu2.10/doc/readme.features:1.2.2.6 ircu2.10/doc/readme.features:1.2.2.7
--- ircu2.10/doc/readme.features:1.2.2.6        Wed Jul 17 17:55:39 2002
+++ ircu2.10/doc/readme.features        Mon Aug 19 10:51:54 2002
@@ -1,7 +1,9 @@
 Many of the old compile-time options are now configured through the
 server configuration file, ircd.conf.  This file is intended to
 document each of these features.  Logging, although also configured
-through the use of F-lines, is documented in doc/readme.log.
+through the use of F-lines, is documented in doc/readme.log.  NOTE
+THAT THESE NAMES ARE CASE SENSITIVE!  Values are not case sensitive
+unless stated otherwise in the documentation for that feature.
 
 DOMAINNAME
  * Type: string
Index: ircu2.10/ircd/ircd_features.c
diff -u ircu2.10/ircd/ircd_features.c:1.15.2.7 ircu2.10/ircd/ircd_features.c:1.15.2.8
--- ircu2.10/ircd/ircd_features.c:1.15.2.7      Wed Jul 17 17:55:40 2002
+++ ircu2.10/ircd/ircd_features.c       Mon Aug 19 10:51:54 2002
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: ircd_features.c,v 1.15.2.7 2002/07/17 22:55:40 kev Exp $
+ * $Id: ircd_features.c,v 1.15.2.8 2002/08/19 15:51:54 kev Exp $
  */
 #include "config.h"
 
@@ -389,7 +389,7 @@
   assert(0 != feature);
 
   for (i = 0; features[i].type; i++) /* find appropriate descriptor */
-    if (!ircd_strcmp(feature, features[i].type))
+    if (!strcmp(feature, features[i].type))
       return &features[i];
 
   Debug((DEBUG_ERROR, "Unknown feature \"%s\"", feature));
----------------------- End of diff -----------------------

Reply via email to