[cvslog] (2003-01-30 01:15:59 UTC) Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Wed Jan 29 19:16:01 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2003-01-30 01:15:59 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     modules/channels/channels.c modules/channels/tclchan.c

Log message:

* udef-[str/int/flag]-* -> udef_[str/int/flag]_*.

---------------------- diff included ----------------------
Index: eggdrop1.7/modules/channels/channels.c
diff -u eggdrop1.7/modules/channels/channels.c:1.22 eggdrop1.7/modules/channels/channels.c:1.23
--- eggdrop1.7/modules/channels/channels.c:1.22	Wed Jan 29 19:04:36 2003
+++ eggdrop1.7/modules/channels/channels.c	Wed Jan 29 19:15:49 2003
@@ -23,7 +23,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: channels.c,v 1.22 2003/01/30 01:04:36 wcc Exp $";
+static const char rcsid[] = "$Id: channels.c,v 1.23 2003/01/30 01:15:49 wcc Exp $";
 #endif
 
 #define MODULE_NAME "channels"
@@ -435,15 +435,15 @@
       if (ul->defined && ul->name) {
 	if (ul->type == UDEF_FLAG)
 	  fprintf(f, "%c%s%s ", getudef(ul->values, chan->dname) ? '+' : '-',
-		  "udef-flag-", ul->name);
+		  "udef_flag_", ul->name);
 	else if (ul->type == UDEF_INT)
-	  fprintf(f, "%s%s %d ", "udef-int-", ul->name, getudef(ul->values,
+	  fprintf(f, "%s%s %d ", "udef_int_", ul->name, getudef(ul->values,
 		  chan->dname));
 	else if (ul->type == UDEF_STR) {
 		char *p;
 		p = (char *)getudef(ul->values, chan->dname);
 		if (!p) strcpy(s, "{}");
-		fprintf(f, "udef-str-%s %s ", ul->name, p);
+		fprintf(f, "udef_str_%s %s ", ul->name, p);
 	}
 	else
 	  debug1("UDEF-ERROR: unknown type %d", ul->type);
Index: eggdrop1.7/modules/channels/tclchan.c
diff -u eggdrop1.7/modules/channels/tclchan.c:1.24 eggdrop1.7/modules/channels/tclchan.c:1.25
--- eggdrop1.7/modules/channels/tclchan.c:1.24	Wed Jan 29 19:04:36 2003
+++ eggdrop1.7/modules/channels/tclchan.c	Wed Jan 29 19:15:49 2003
@@ -22,7 +22,7 @@
 
 /* FIXME: #include mess
 #ifndef lint
-static const char rcsid[] = "$Id: tclchan.c,v 1.24 2003/01/30 01:04:36 wcc Exp $";
+static const char rcsid[] = "$Id: tclchan.c,v 1.25 2003/01/30 01:15:49 wcc Exp $";
 #endif
 */
 
@@ -505,11 +505,11 @@
 	chan->aop_max = chan->aop_min;
       }
     } else {
-      if (!strncmp(item[i] + 1, "udef-flag-", 10))
+      if (!strncmp(item[i] + 1, "udef_flag_", 10))
         initudef(UDEF_FLAG, item[i] + 11, 0);
-      else if (!strncmp(item[i], "udef-int-", 9))
+      else if (!strncmp(item[i], "udef_int_", 9))
         initudef(UDEF_INT, item[i] + 9, 0);
-	else if (!strncmp(item[i], "udef-str-", 9))
+	else if (!strncmp(item[i], "udef_str_", 9))
 		initudef(UDEF_STR, item[i] + 9, 0);
 check_for_udef_flags:
       found = 0;
@@ -518,7 +518,7 @@
 	     /* Direct match when set during .chanset ... */
 	    (!strcasecmp(item[i] + 1, ul->name) ||
 	     /* ... or with prefix when set during chanfile load. */
-	     (!strncmp(item[i] + 1, "udef-flag-", 10) &&
+	     (!strncmp(item[i] + 1, "udef_flag_", 10) &&
 	      !strcasecmp(item[i] + 11, ul->name)))) {
           if (item[i][0] == '+')
             setudef(ul, chan->dname, 1);
@@ -530,7 +530,7 @@
 		    /* Direct match when set during .chanset ... */
 		   (!strcasecmp(item[i], ul->name) ||
 		    /* ... or with prefix when set during chanfile load. */
-		    (!strncmp(item[i], "udef-int-", 9) &&
+		    (!strncmp(item[i], "udef_int_", 9) &&
 		     !strcasecmp(item[i] + 9, ul->name)))) {
           i++;
           if (i >= items) {
@@ -542,7 +542,7 @@
           found = 1;
 	  break;
         }
-	else if (ul->type == UDEF_STR && (!strcasecmp(item[i], ul->name) || (!strncmp(item[i], "udef-str-", 9) && !strcasecmp(item[i] + 9, ul->name)))) {
+	else if (ul->type == UDEF_STR && (!strcasecmp(item[i], ul->name) || (!strncmp(item[i], "udef_str_", 9) && !strcasecmp(item[i] + 9, ul->name)))) {
 		char *val;
 		i++;
 		if (i >= items) {
----------------------- End of diff -----------------------



More information about the Changes mailing list