]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/wildcard.cpp
Added getrlimit/setrlimit to set process limits to allow a core dump
[user/henk/code/inspircd.git] / src / wildcard.cpp
index 8b4190539f9fb7a8287b7c0596e92cb0c9bd1bf7..123abc500bf85fa81991f9db42458ef67508833b 100644 (file)
@@ -101,6 +101,15 @@ bool match(const char* literal, const char* mask)
        strlcpy(M,mask,10240);
        strlower(L);
        strlower(M);
+       // short circuit literals
+       log(DEBUG,"Match '%s' to '%s'",L,M);
+       if ((!strchr(M,'*')) && (!strchr(M,'?')))
+       {
+               if (!strcasecmp(L,M))
+               {
+                       return true;
+               }
+       }
        match2(L,M);
        return (MWC == 2);
 }