X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_users.cpp;h=d9e3a72cfd89fbcd7a65805097897c88bfd74b41;hb=19b34cde73ce410fdc335127efe4d7080270feb2;hp=bcac497319363003c8a159bbae449adf8d741a14;hpb=1383dba43e463f292aea094d01f62f355946049d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_users.cpp b/src/cmd_users.cpp index bcac49731..d9e3a72cf 100644 --- a/src/cmd_users.cpp +++ b/src/cmd_users.cpp @@ -14,26 +14,18 @@ * --------------------------------------------------- */ -using namespace std; - -#include "inspircd_config.h" -#include "inspircd.h" -#include "inspircd_io.h" -#include -#include #include "users.h" -#include "ctables.h" -#include "globals.h" -#include "message.h" -#include "commands.h" -#include "helperfuncs.h" -#include "hashcomp.h" -#include "typedefs.h" -#include "cmd_users.h" +#include "commands/cmd_users.h" + + -void cmd_users::Handle (char **parameters, int pcnt, userrec *user) +extern "C" command_t* init_command(InspIRCd* Instance) { - WriteServ(user->fd,"445 %s :USERS has been disabled (depreciated command)",user->nick); + return new cmd_users(Instance); } - +CmdResult cmd_users::Handle (const char** parameters, int pcnt, userrec *user) +{ + user->WriteServ("445 %s :USERS has been disabled (depreciated command)",user->nick); + return CMD_FAILURE; +}