mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
g++ is picky about default params with overloading
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6324 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
3446072b3e
commit
16e251d74a
@ -13,5 +13,7 @@
|
||||
|
||||
#include "inspircd_config.h"
|
||||
|
||||
bool match(const char *str, const char *mask, bool use_cidr_match = false);
|
||||
bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr_match = false);
|
||||
bool match(const char *str, const char *mask);
|
||||
bool match(const char *str, const char *mask, bool use_cidr_match);
|
||||
bool match(bool case_sensitive, const char *str, const char *mask);
|
||||
bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr_match);
|
||||
|
@ -140,3 +140,9 @@ bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr
|
||||
return true;
|
||||
return csmatch(str, mask);
|
||||
}
|
||||
|
||||
bool match(bool case_sensitive, const char *str, const char *mask)
|
||||
{
|
||||
return case_sensitive ? csmatch(str, mask) : match(str, mask);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user