[cvslog] (2003-05-12 14:11:52 UTC) Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Mon May 12 08:11:53 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2003-05-12 14:11:52 UTC
Commited by: wingman

Modified files:
     lib/eggdrop/binds.c lib/eggdrop/eggdns.c lib/eggdrop/modvals.h
     lib/eggdrop/partyline.c lib/eggdrop/users.c lib/eggdrop/xml.h
     lib/eggdrop/xmlread.c src/modules.c

Log message:

yet another post-it on my monitor..."do not use // for comments..." ;-)

---------------------- diff included ----------------------
Index: eggdrop1.7/lib/eggdrop/binds.c
diff -u eggdrop1.7/lib/eggdrop/binds.c:1.4 eggdrop1.7/lib/eggdrop/binds.c:1.5
--- eggdrop1.7/lib/eggdrop/binds.c:1.4	Thu Apr  3 22:04:46 2003
+++ eggdrop1.7/lib/eggdrop/binds.c	Mon May 12 09:11:42 2003
@@ -223,8 +223,10 @@
 	entry->client_data = client_data;
 	entry->flags = bind_flags;
 
-	//entry->user_flags.match = FR_GLOBAL | FR_CHAN;
-	//break_down_flags(flags, &(entry->user_flags), NULL);
+	/*
+	entry->user_flags.match = FR_GLOBAL | FR_CHAN;
+	break_down_flags(flags, &(entry->user_flags), NULL);
+	*/
 
 	return(0);
 }
Index: eggdrop1.7/lib/eggdrop/eggdns.c
diff -u eggdrop1.7/lib/eggdrop/eggdns.c:1.5 eggdrop1.7/lib/eggdrop/eggdns.c:1.6
--- eggdrop1.7/lib/eggdrop/eggdns.c:1.5	Mon May 12 06:54:53 2003
+++ eggdrop1.7/lib/eggdrop/eggdns.c	Mon May 12 09:11:42 2003
@@ -351,9 +351,10 @@
 		else if (type == DNS_IPV6) ns_type = 28; /* IPv6 */
 		else return(-1);
 
-		// hmm, casting const to char * doesn't seem to
-  		// be a good idea ;-) shouldn't the funciton be changed
-		// (i.e. removing the const identifier?)
+		/* hmm, casting const to char * doesn't seem to
+  		 * be a good idea ;-) shouldn't the funciton be changed
+		 * (i.e. removing the const identifier?)
+		 */
 		newhost = (char *)host;
 	}
 
@@ -461,13 +462,13 @@
 		reply.rdlength = ntohs(reply.rdlength);
 		ptr += 10;
 		if (reply.type == 1) {
-			//fprintf(fp, "ipv4 reply\n");
+			/*fprintf(fp, "ipv4 reply\n");*/
 			inet_ntop(AF_INET, ptr, result, 512);
 			got_answer(header.id, result);
 			return;
 		}
 		else if (reply.type == 28) {
-			//fprintf(fp, "ipv6 reply\n");
+			/*fprintf(fp, "ipv6 reply\n");*/
 			inet_ntop(AF_INET6, ptr, result, 512);
 			got_answer(header.id, result);
 			return;
@@ -476,7 +477,7 @@
 			char *placeholder;
 			int len, dot;
 
-			//fprintf(fp, "reverse-lookup reply\n");
+			/*fprintf(fp, "reverse-lookup reply\n");*/
 			placeholder = ptr;
 			result[0] = 0;
 			while ((len = *ptr++) != 0) {
Index: eggdrop1.7/lib/eggdrop/modvals.h
diff -u eggdrop1.7/lib/eggdrop/modvals.h:1.10 eggdrop1.7/lib/eggdrop/modvals.h:1.11
--- eggdrop1.7/lib/eggdrop/modvals.h:1.10	Mon Feb 17 04:22:30 2003
+++ eggdrop1.7/lib/eggdrop/modvals.h	Mon May 12 09:11:42 2003
@@ -20,7 +20,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 /*
- * $Id: modvals.h,v 1.10 2003/02/17 10:22:30 stdarg Exp $
+ * $Id: modvals.h,v 1.11 2003/05/12 14:11:42 wingman Exp $
  */
 
 #ifndef _EGG_MOD_MODVALS_H
@@ -47,7 +47,7 @@
 #define HOOK_QSERV		108
 #define HOOK_ADD_MODE		109
 #define HOOK_MATCH_NOTEREJ	110
-//#define HOOK_IRCCMP		111
+/*#define HOOK_IRCCMP		111*/
 #define HOOK_DNS_HOSTBYIP	112
 #define HOOK_DNS_IPBYHOST	113
 #define HOOK_ENCRYPT_STRING     114
Index: eggdrop1.7/lib/eggdrop/partyline.c
diff -u eggdrop1.7/lib/eggdrop/partyline.c:1.4 eggdrop1.7/lib/eggdrop/partyline.c:1.5
--- eggdrop1.7/lib/eggdrop/partyline.c:1.4	Wed Mar  5 06:20:59 2003
+++ eggdrop1.7/lib/eggdrop/partyline.c	Mon May 12 09:11:42 2003
@@ -227,7 +227,7 @@
 		sockbuf_write(p->idx, ptr, buflen);
 	}
 	if (ptr != buf) free(ptr);
-	//bind_check(BT_public, NULL, pid, party->nick, party->user, party->chan, text, len);
+	/*bind_check(BT_public, NULL, pid, party->nick, party->user, party->chan, text, len);*/
 	return(0);
 }
 
Index: eggdrop1.7/lib/eggdrop/users.c
diff -u eggdrop1.7/lib/eggdrop/users.c:1.12 eggdrop1.7/lib/eggdrop/users.c:1.13
--- eggdrop1.7/lib/eggdrop/users.c:1.12	Sat Apr 19 01:31:26 2003
+++ eggdrop1.7/lib/eggdrop/users.c	Mon May 12 09:11:42 2003
@@ -4,8 +4,6 @@
 
 #include <eggdrop/eggdrop.h>
 
-//static FILE *fp = NULL;
-
 /* When we walk along irchost_cache_ht, we pass along this struct so the
  * function can keep track of modified entries. */
 typedef struct {
@@ -44,7 +42,6 @@
 
 int user_init()
 {
-	//fp = fopen("users.log", "a");
 
 	/* Create hash tables. */
 	handle_ht = hash_table_create(NULL, NULL, USER_HASH_SIZE, HASH_TABLE_STRINGS);
@@ -282,10 +279,8 @@
 user_t *user_lookup_authed(const char *handle, const char *pass)
 {
 	user_t *u = user_lookup_by_handle(handle);
-	//if (!u) fprintf(fp, "handle '%s' not found\n", handle);
 	if (!u) return(NULL);
 	if (user_check_pass(u, pass)) return(u);
-	//fprintf(fp, "pass '%s' failed\n", pass);
 	return(NULL);
 }
 
Index: eggdrop1.7/lib/eggdrop/xml.h
diff -u eggdrop1.7/lib/eggdrop/xml.h:1.2 eggdrop1.7/lib/eggdrop/xml.h:1.3
--- eggdrop1.7/lib/eggdrop/xml.h:1.2	Sun Feb 16 05:15:06 2003
+++ eggdrop1.7/lib/eggdrop/xml.h	Mon May 12 09:11:42 2003
@@ -3,9 +3,6 @@
 
 #include <stdarg.h>
 
-/* Comment out to disable &char; conversions. */
-#define AMP_CHARS
-
 typedef struct {
 	char *name;
 	char *value;
@@ -34,12 +31,10 @@
 	void *client_data;
 } xml_node_t;
 
-//#ifdef AMP_CHARS
 typedef struct {
 	char *key;
 	char value;
 } xml_amp_conversion_t;
-//#endif
 
 xml_node_t *xml_node_new();
 int xml_node_destroy(xml_node_t *node);
Index: eggdrop1.7/lib/eggdrop/xmlread.c
diff -u eggdrop1.7/lib/eggdrop/xmlread.c:1.2 eggdrop1.7/lib/eggdrop/xmlread.c:1.3
--- eggdrop1.7/lib/eggdrop/xmlread.c:1.2	Sun Feb 16 05:15:06 2003
+++ eggdrop1.7/lib/eggdrop/xmlread.c	Mon May 12 09:11:42 2003
@@ -3,9 +3,7 @@
 #include <string.h>
 #include "xml.h"
 
-#ifdef AMP_CHARS
 extern xml_amp_conversion_t builtin_conversions[];
-#endif
 
 /* These are pretty much in 'most common' order. */
 static const char *spaces = " \t\n\r\v";
@@ -195,7 +193,6 @@
 		read_value(data, &attr.value);
 
 		xml_attribute_add(node, &attr);
-		//printf("name: '%s'\nvalue: '%s'\n", attr.name, attr.value);
 	}
 }
 
Index: eggdrop1.7/src/modules.c
diff -u eggdrop1.7/src/modules.c:1.135 eggdrop1.7/src/modules.c:1.136
--- eggdrop1.7/src/modules.c:1.135	Thu Mar  6 06:08:15 2003
+++ eggdrop1.7/src/modules.c	Mon May 12 09:11:42 2003
@@ -25,7 +25,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: modules.c,v 1.135 2003/03/06 12:08:15 tothwolf Exp $";
+static const char rcsid[] = "$Id: modules.c,v 1.136 2003/05/12 14:11:42 wingman Exp $";
 #endif
 
 #include <eggdrop/eggdrop.h>
@@ -36,7 +36,7 @@
 #include "misc.h"
 #include "cmdt.h"		/* cmd_t				*/
 #include "core_binds.h"
-//#include "cmds.h"		/* check_dcc_attrs, check_dcc_chanattrs	*/
+/*#include "cmds.h"*/		/* check_dcc_attrs, check_dcc_chanattrs	*/
 #include <ctype.h>
 #include <ltdl.h>
 
----------------------- End of diff -----------------------


More information about the Changes mailing list