]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/wildcard.cpp
Fix typos
[user/henk/code/inspircd.git] / src / wildcard.cpp
index 3b4554f0fe5226215a76c93de2ef48ca91480b9c..b0602c82e4cadf2fd9a63b24358567bc11efc513 100644 (file)
@@ -19,10 +19,10 @@ using namespace std;
 #include <string>
 #include "inspircd_config.h"
 #include "inspircd.h"
-#include "helperfuncs.h"
+#include "hashcomp.h"
 #include "inspstring.h"
 
-extern char lowermap[255];
+using irc::sockets::MatchCIDR;
 
 // Wed 27 Apr 2005 - Brain
 // I've taken our our old wildcard routine -
@@ -86,7 +86,7 @@ bool match(const char *str, const char *mask)
 /* Overloaded function that has the option of using cidr */
 bool match(const char *str, const char *mask, bool use_cidr_match)
 {
-       if (use_cidr_match && MatchCIDR(str, mask))
+       if (use_cidr_match && MatchCIDR(str, mask, true))
                return true;
        return match(str, mask);
 }