diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-13 03:28:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-13 03:28:56 +0000 |
commit | dd737891345a7ff80f601ab0c0ba712de5e10943 (patch) | |
tree | 64697cad44a531d592e6b1ed67c960156ec9a920 /src/helperfuncs.cpp | |
parent | 5862157a0889c0cb9a889a08b1dd0d9959c5b9e9 (diff) |
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
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |