From 713416ddfc182873d29e65161f76c89b961413a2 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 1 Apr 2013 16:20:35 +0200 Subject: Change IsNickHandler()/IsIdentHandler()/IsChannelHandler() to use C++ strings as arguments instead of C strings --- include/inspircd.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/inspircd.h b/include/inspircd.h index 456a78d40..6b7a01b95 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -263,10 +263,10 @@ class serverstats } }; -DEFINE_HANDLER2(IsNickHandler, bool, const char*, size_t); +DEFINE_HANDLER2(IsNickHandler, bool, const std::string&, size_t); DEFINE_HANDLER2(GenRandomHandler, void, char*, size_t); -DEFINE_HANDLER1(IsIdentHandler, bool, const char*); -DEFINE_HANDLER2(IsChannelHandler, bool, const char*, size_t); +DEFINE_HANDLER1(IsIdentHandler, bool, const std::string&); +DEFINE_HANDLER2(IsChannelHandler, bool, const std::string&, size_t); DEFINE_HANDLER1(RehashHandler, void, const std::string&); DEFINE_HANDLER3(OnCheckExemptionHandler, ModResult, User*, Channel*, const std::string&); @@ -566,7 +566,7 @@ class CoreExport InspIRCd * @param chname A channel name to verify * @return True if the name is valid */ - caller2 IsChannel; + caller2 IsChannel; /** Return true if str looks like a server ID * @param string to check against @@ -614,13 +614,13 @@ class CoreExport InspIRCd * @param n A nickname to verify * @return True if the nick is valid */ - caller2 IsNick; + caller2 IsNick; /** Return true if an ident is valid * @param An ident to verify * @return True if the ident is valid */ - caller1 IsIdent; + caller1 IsIdent; /** Add a dns Resolver class to this server's active set * @param r The resolver to add -- cgit v1.2.3