diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-25 17:21:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-25 17:21:30 +0000 |
commit | 89bc1282b9e1e2bf9eccacae8f1dc2b5f9ade9b7 (patch) | |
tree | ff31b00e1a0425f0aa2ae4e41f873686aa1d2887 /src | |
parent | 914534be62976d97dd387fa3412e7b0cda002c7e (diff) |
Turn IsIdent into a functor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7568 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/helperfuncs.cpp | 2 | ||||
-rw-r--r-- | src/inspircd.cpp | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 8e6627d1f..b5b2a095b 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -418,7 +418,7 @@ bool IsNickHandler::Call(const char* n) } /* return true for good ident, false else */ -bool InspIRCd::IsIdent(const char* n) +bool IsIdentHandler::Call(const char* n) { if (!n || !*n) return false; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 09f1e8685..dea2f0a58 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -394,7 +394,10 @@ void InspIRCd::WritePID(const std::string &filename) InspIRCd::InspIRCd(int argc, char** argv) : ModCount(0), GlobalCulls(this), - HandleIsNick(this), IsNick(&HandleIsNick) + HandleIsNick(this), + HandleIsIdent(this), + IsNick(&HandleIsNick), + IsIdent(&HandleIsIdent) { int found_ports = 0; FailedPortList pl; |