diff options
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 0bcee0711..8e6627d1f 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -389,7 +389,7 @@ bool InspIRCd::IsChannel(const char *chname) } /* true for valid nickname, false else */ -bool InspIRCd::IsNick(const char* n) +bool IsNickHandler::Call(const char* n) { if (!n || !*n) return false; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4a53c2a05..09f1e8685 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -39,6 +39,7 @@ #include "typedefs.h" #include "command_parse.h" #include "exitcodes.h" +#include "caller.h" #ifdef WIN32 @@ -391,7 +392,9 @@ void InspIRCd::WritePID(const std::string &filename) } InspIRCd::InspIRCd(int argc, char** argv) - : ModCount(-1), GlobalCulls(this) + : ModCount(0), + GlobalCulls(this), + HandleIsNick(this), IsNick(&HandleIsNick) { int found_ports = 0; FailedPortList pl; |