summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-05-18 18:55:01 +0100
committerPeter Powell <petpow@saberuk.com>2013-05-18 19:11:07 +0100
commit5c9427cde0a949a17a476311db0a2a275345337b (patch)
treebf4cea76e7270f476d3f19ec82db9885db9574c1 /include
parent6153822a2de1867b7b90b95e8ed9bc1a8c792c84 (diff)
Remove the size argument from IsChannel and IsNick.
There was only one case (which was probably an error) where these methods were not set to their ServerLimits value.
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 04327992c..ed6f7df94 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -246,10 +246,10 @@ public:
void SendTo(LocalUser* user);
};
-DEFINE_HANDLER2(IsNickHandler, bool, const std::string&, size_t);
+DEFINE_HANDLER1(IsNickHandler, bool, const std::string&);
DEFINE_HANDLER2(GenRandomHandler, void, char*, size_t);
DEFINE_HANDLER1(IsIdentHandler, bool, const std::string&);
-DEFINE_HANDLER2(IsChannelHandler, bool, const std::string&, size_t);
+DEFINE_HANDLER1(IsChannelHandler, bool, const std::string&);
DEFINE_HANDLER1(RehashHandler, void, const std::string&);
DEFINE_HANDLER3(OnCheckExemptionHandler, ModResult, User*, Channel*, const std::string&);
@@ -509,7 +509,7 @@ class CoreExport InspIRCd
* @param chname A channel name to verify
* @return True if the name is valid
*/
- caller2<bool, const std::string&, size_t> IsChannel;
+ caller1<bool, const std::string&> IsChannel;
/** Return true if str looks like a server ID
* @param string to check against
@@ -565,7 +565,7 @@ class CoreExport InspIRCd
* @param n A nickname to verify
* @return True if the nick is valid
*/
- caller2<bool, const std::string&, size_t> IsNick;
+ caller1<bool, const std::string&> IsNick;
/** Return true if an ident is valid
* @param An ident to verify