]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/wildcard.cpp
Move all_opers into class InspIRCd
[user/henk/code/inspircd.git] / src / wildcard.cpp
index 3b4554f0fe5226215a76c93de2ef48ca91480b9c..6b84ef5b3004c54524994f8a20b579275378d4b0 100644 (file)
@@ -22,6 +22,8 @@ using namespace std;
 #include "helperfuncs.h"
 #include "inspstring.h"
 
+using irc::sockets::MatchCIDR;
+
 extern char lowermap[255];
 
 // Wed 27 Apr 2005 - Brain
@@ -86,7 +88,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);
 }