diff options
| author | 2006-08-10 14:43:29 +0000 | |
|---|---|---|
| committer | 2006-08-10 14:43:29 +0000 | |
| commit | 396c9ef9f7a96934d3227bb7d1d091315e3d4fa8 (patch) | |
| tree | b775fca47b8536d7e3c5df17480dbf4cca9f6ded /src/cmd_server.cpp | |
| parent | Change to use the core perl module Cwd rather than the pwd command. Should be... (diff) | |
FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, GetClass, WriteOpers, GetServerDescription -> into classes
ServerConfig takes InspIRCd pointer in its constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4832 e03df62e-2008-0410-955e-edbf42e46eb7
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); } |
