X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_wallops.cpp;h=f2a4ddfd97a3b93d68696ddb831512da546541b0;hb=4cc6e5e14fdbde499481dbab5ab2ad1257b8af9c;hp=a30ab0762a84192088800d6658a7ec41032fd5cb;hpb=21deb54715b6937ac9d4de5e2c4c46fb1b38aa3a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_wallops.cpp b/src/cmd_wallops.cpp index a30ab0762..f2a4ddfd9 100644 --- a/src/cmd_wallops.cpp +++ b/src/cmd_wallops.cpp @@ -2,31 +2,28 @@ * | 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. * * --------------------------------------------------- */ -#include "configreader.h" -#include "modules.h" -#include "commands.h" -#include "helperfuncs.h" +#include "inspircd.h" #include "commands/cmd_wallops.h" -extern int MODCOUNT; -extern std::vector modules; -extern std::vector factory; -extern ServerConfig* Config; -void cmd_wallops::Handle (const char** parameters, int pcnt, userrec *user) + +extern "C" DllExport Command* init_command(InspIRCd* Instance) +{ + return new CommandWallops(Instance); +} + +CmdResult CommandWallops::Handle (const char** parameters, int pcnt, User *user) { user->WriteWallOps(std::string(parameters[0])); FOREACH_MOD(I_OnWallops,OnWallops(user,parameters[0])); + return CMD_SUCCESS; }