summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-08-07 14:37:30 +0100
committerPeter Powell <petpow@saberuk.com>2013-08-12 18:06:27 +0100
commit12be0adc38602492f6ed64df674d4a950435f3d3 (patch)
tree76eecf6170c1ae2fd597163e69ea2e0ea677c9e8 /include/inspircd.h
parent9d4efff3957f1ad163f726bc44bed3a4870afb94 (diff)
Clean up wildcard code.
- Move references and pointers next to the type. - Rename match_internal to MatchInternal. - Remove duplicate NULL check on map in MatchCIDR.
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index ccb91070e..790e2a0ff 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -546,8 +546,8 @@ class CoreExport InspIRCd
* @param mask The glob pattern to match against.
* @param map The character map to use when matching.
*/
- static bool Match(const std::string &str, const std::string &mask, unsigned const char *map = NULL);
- static bool Match(const char *str, const char *mask, unsigned const char *map = NULL);
+ static bool Match(const std::string& str, const std::string& mask, unsigned const char* map = NULL);
+ static bool Match(const char* str, const char* mask, unsigned const char* map = NULL);
/** Match two strings using pattern matching, optionally, with a map
* to check case against (may be NULL). If map is null, match will be case insensitive.
@@ -556,8 +556,8 @@ class CoreExport InspIRCd
* @param mask The glob or CIDR pattern to match against.
* @param map The character map to use when matching.
*/
- static bool MatchCIDR(const std::string &str, const std::string &mask, unsigned const char *map = NULL);
- static bool MatchCIDR(const char *str, const char *mask, unsigned const char *map = NULL);
+ static bool MatchCIDR(const std::string& str, const std::string& mask, unsigned const char* map = NULL);
+ static bool MatchCIDR(const char* str, const char* mask, unsigned const char* map = NULL);
/** Matches a hostname and IP against a space delimited list of hostmasks.
* @param masks The space delimited masks to match against.