X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_map.cpp;h=e0f77e3b8685f24fae36807289de6b2df93cdcfb;hb=eb28eaea35d9d109a0b7b890de9d957d562da675;hp=5949420aa6f79bdc3f5d39e71e96a39e123fd7d4;hpb=1e639377cbad496a0b5f7d969a88fb808508f811;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_map.cpp b/src/cmd_map.cpp index 5949420aa..e0f77e3b8 100644 --- a/src/cmd_map.cpp +++ b/src/cmd_map.cpp @@ -14,31 +14,20 @@ * --------------------------------------------------- */ -using namespace std; - #include "inspircd_config.h" -#include "inspircd.h" -#include "inspircd_io.h" +#include "configreader.h" #include "users.h" -#include "ctables.h" -#include "globals.h" -#include "modules.h" -#include "message.h" #include "commands.h" #include "helperfuncs.h" -#include "hashcomp.h" -#include "typedefs.h" -#include "command_parse.h" -#include "cmd_map.h" +#include "commands/cmd_map.h" -extern ServerConfig* Config; +extern InspIRCd* ServerInstance; -void cmd_map::Handle (char **parameters, int pcnt, userrec *user) +void cmd_map::Handle (const char** parameters, int pcnt, userrec *user) { // as with /LUSERS this does nothing without a linking // module to override its behaviour and display something // better. - WriteServ(user->fd,"006 %s :%s",user->nick,Config->ServerName); - WriteServ(user->fd,"007 %s :End of /MAP",user->nick); + user->WriteServ("006 %s :%s",user->nick,ServerInstance->Config->ServerName); + user->WriteServ("007 %s :End of /MAP",user->nick); } -