]> jfr.im git - irc/quakenet/snircd.git/blobdiff - ircd/match.c
import of 2.10.12.07
[irc/quakenet/snircd.git] / ircd / match.c
index d14fff60718815269d72f8e13f6312fa5f251608..45fb75e356ef55255746ece0d7914ea353bc6b20 100644 (file)
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Functions to match strings against IRC mask strings.
- * @version $Id: match.c,v 1.20 2005/09/12 03:40:17 entrope Exp $
+ * @version $Id: match.c,v 1.20.2.1 2006/02/16 03:16:19 entrope Exp $
  */
 #include "config.h"
 
@@ -206,7 +206,7 @@ int match(const char *mask, const char *name)
     m++;
     /* allow escaping to force capitalization */
     if (*m++ != *n++)
-      return 1;
+      goto backtrack;
     break;
   case '*': case '?':
     for (star_p = 0; ; m++) {