From dd737891345a7ff80f601ab0c0ba712de5e10943 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 13 Apr 2008 03:28:56 +0000 Subject: Port a bunch of methods of InspIRCd to functors. IsChannel, IsSID, Rehash. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9474 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 3ff94e4f6..ce962fea6 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -182,7 +182,7 @@ bool InspIRCd::IsValidMask(const std::string &mask) } /* true for valid channel name, false else */ -bool InspIRCd::IsChannel(const char *chname) +bool IsChannelHandler::Call(const char *chname) { char *c; @@ -268,7 +268,7 @@ bool IsIdentHandler::Call(const char* n) return true; } -bool InspIRCd::IsSID(const std::string &str) +bool IsSIDHandler::Call(const std::string &str) { /* Returns true if the string given is exactly 3 characters long, * starts with a digit, and the other two characters are A-Z or digits -- cgit v1.2.3