diff options
Diffstat (limited to 'src/cmd_server.cpp')
-rw-r--r-- | src/cmd_server.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd_server.cpp b/src/cmd_server.cpp index bd41e5595..93274e040 100644 --- a/src/cmd_server.cpp +++ b/src/cmd_server.cpp @@ -17,10 +17,13 @@ #include "users.h" #include "commands.h" #include "helperfuncs.h" +#include "inspircd.h" #include "commands/cmd_server.h" +extern InspIRCd* ServerInstance; + void cmd_server::Handle (const char** parameters, int pcnt, userrec *user) { user->WriteServ("666 %s :You cannot identify as a server, you are a USER. IRC Operators informed.",user->nick); - WriteOpers("*** WARNING: %s attempted to issue a SERVER command and is registered as a user!",user->nick); + ServerInstance->WriteOpers("*** WARNING: %s attempted to issue a SERVER command and is registered as a user!",user->nick); } |