diff options
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 4f5add0d6..c2e4fc975 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -79,13 +79,11 @@ extern SocketEngine* SE; // by an integer, meaning there is no need for a scan/search operation. extern userrec* fd_ref_table[65536]; -extern serverstats* stats; extern Server* MyServer; extern ServerConfig *Config; extern user_hash clientlist; extern chan_hash chanlist; -extern command_table cmdlist; /* This function pokes and hacks at a parameter list like the following: * @@ -499,7 +497,7 @@ void CommandParser::ProcessCommand(userrec *user, char* cmd) { if (strchr("@!\"$%^&*(){}[]_=+;:'#~,<>/?\\|`",command[x])) { - stats->statsUnknown++; + ServerInstance->stats->statsUnknown++; WriteServ(user->fd,"421 %s %s :Unknown command",user->nick,command); return; } @@ -621,7 +619,7 @@ void CommandParser::ProcessCommand(userrec *user, char* cmd) } if ((!cmd_found) && (user)) { - stats->statsUnknown++; + ServerInstance->stats->statsUnknown++; WriteServ(user->fd,"421 %s %s :Unknown command",user->nick,command); } } |