diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 18:34:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 18:34:39 +0000 |
commit | 3e50e674c3aab0827e62d21e75b828bff0e88da7 (patch) | |
tree | 53c5aae107954aa2342e77cd702debcc6c3d8424 /src/wildcard.cpp | |
parent | 662253ef6e58a555ce60d26339ab05bf52540677 (diff) |
Allow nick!ident@ and ident@ portions in a CIDR mask if given, use match() without CIDR against that portion. This allows for CIDR operhosts while still matching idents (AND CIDR CHANNEL BANS)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4739 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/wildcard.cpp')
-rw-r--r-- | src/wildcard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp index 3b4554f0f..e626f2aa2 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -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); } |