summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-11 19:26:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-11 19:26:19 +0000
commitfad263cd933b15ee180ed27edf8001938c782c13 (patch)
tree75859d84acd82249875690689ccedf14e3160b44
parent0f8b11bc03d37e7ca495be5ea81cb85b84cf4a28 (diff)
Our optimizations missed a possibility :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3166 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/wildcard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp
index 1b1f874ab..3b95b5f75 100644
--- a/src/wildcard.cpp
+++ b/src/wildcard.cpp
@@ -39,7 +39,7 @@ int wildcmp(char *wild, char *string)
char *cp, *mp;
while ((*string) && (*wild != '*'))
{
- if ((*wild != *string) && (*wild != '?'))
+ if ((lowermap[(unsigned)*wild] != lowermap[(unsigned)*string]) && (*wild != '?'))
{
return 0;
}