[cvslog] (2002-08-12 01:16:41 UTC) Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sun Aug 11 20:17:01 CST 2002


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2002-08-12 01:16:41 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     src/tclhash.c

Log message:

* MATCH_PARTIAL bind tables (like dcc) were not being checked for correct user flags.

---------------------- diff included ----------------------
Index: eggdrop1.7/src/tclhash.c
diff -u eggdrop1.7/src/tclhash.c:1.72 eggdrop1.7/src/tclhash.c:1.73
--- eggdrop1.7/src/tclhash.c:1.72	Fri Aug  9 18:44:07 2002
+++ eggdrop1.7/src/tclhash.c	Sun Aug 11 20:16:31 2002
@@ -28,7 +28,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: tclhash.c,v 1.72 2002/08/09 23:44:07 stdarg Exp $";
+static const char rcsid[] = "$Id: tclhash.c,v 1.73 2002/08/12 01:16:31 stdarg Exp $";
 #endif
 
 #include "main.h"
@@ -446,6 +446,11 @@
 		winner = NULL;
 		for (entry = table->entries; entry; entry = entry->next) {
 			if (entry->flags & BIND_DELETED) continue;
+			if (table->flags & BIND_USE_ATTR) {
+				if (table->flags & BIND_STRICT_ATTR) cmp = flagrec_eq(&entry->user_flags, flags);
+				else cmp = flagrec_ok(&entry->user_flags, flags);
+				if (!cmp) continue;
+			}
 			masklen = strlen(entry->mask);
 			if (!strncasecmp(match, entry->mask, masklen < matchlen ? masklen : matchlen)) {
 				winner = entry;
----------------------- End of diff -----------------------



More information about the Changes mailing list