X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_wallops.cpp;h=7c1c25f55c663c83dd4d582582ae9aacc523fde2;hb=46ff0bed0047c4cd05828c5f46dce63176e5084b;hp=077ead78e3855354321d65b3175236bd1d530278;hpb=1383dba43e463f292aea094d01f62f355946049d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_wallops.cpp b/src/cmd_wallops.cpp index 077ead78e..7c1c25f55 100644 --- a/src/cmd_wallops.cpp +++ b/src/cmd_wallops.cpp @@ -2,62 +2,29 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits * - * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see * the file COPYING for details. * * --------------------------------------------------- */ -using namespace std; - -#include "inspircd_config.h" -#include "inspircd.h" -#include "inspircd_io.h" -#include -#include -#ifdef GCC3 -#include -#else -#include -#endif -#include -#include -#include -#include -#include "users.h" -#include "ctables.h" -#include "globals.h" +#include "configreader.h" #include "modules.h" -#include "dynamic.h" -#include "wildcard.h" -#include "message.h" -#include "commands.h" -#include "mode.h" -#include "xline.h" -#include "inspstring.h" -#include "dnsqueue.h" -#include "helperfuncs.h" -#include "hashcomp.h" -#include "socketengine.h" -#include "typedefs.h" -#include "command_parse.h" -#include "cmd_wallops.h" +#include "commands/cmd_wallops.h" + -extern int MODCOUNT; -extern std::vector modules; -extern std::vector factory; -extern ServerConfig* Config; -void cmd_wallops::Handle (char **parameters, int pcnt, userrec *user) +extern "C" DllExport command_t* init_command(InspIRCd* Instance) { - WriteWallOps(user,false,"%s",parameters[0]); - FOREACH_MOD(I_OnWallops,OnWallops(user,parameters[0])); + return new cmd_wallops(Instance); } - +CmdResult cmd_wallops::Handle (const char** parameters, int pcnt, userrec *user) +{ + user->WriteWallOps(std::string(parameters[0])); + FOREACH_MOD(I_OnWallops,OnWallops(user,parameters[0])); + return CMD_SUCCESS; +}