Eggdev: [Bug 287] +Enforcebans

bugzilla-daemon at tsss.org bugzilla-daemon at tsss.org
Mon Dec 2 00:51:37 CST 2002


http://www.eggheads.org/bugzilla/show_bug.cgi?id=287





------- Additional Comments From wcc at techmonkeys.org  2002-12-02 00:51 -------
See if this patch fixes the problem:

diff -ur eggdrop1.6/src/match.c eggneu/src/match.c
--- eggdrop1.6/src/match.c	Mon Dec  2 03:43:51 2002
+++ eggneu/src/match.c	Mon Dec  2 03:45:38 2002
@@ -146,7 +146,7 @@
 	do
 	  m--;			/* Search backwards */
 	while ((m > ma) && (*m == '?'));	/* For first non-? char */
-	if ((m > ma) ? ((*m == '*') && (m[-1] != QUOTE)) : (*m == '*'))
+	if ((m > ma) ? ((*m == '*') && (m[-1] != QUOTE || m[-1] == 0x5C)) : (*m 
== '*'))
 	  return MATCH;		/* nonquoted * = match */
 	break;
       case WILDP:
@@ -269,7 +269,7 @@
     n--;
 
   while (n >= na) {
-    if ((m <= ma) || (m[-1] != QUOTE)) {	/* Only look if no quote */
+    if ((m <= ma) || (m[-1] != QUOTE || m[-1] == 0x5C)) {	/* Only look if 
no quote */
       switch (*m) {
       case WILDS:		/* Matches anything */
 	do

(by Eule)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Eggdev mailing list