X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_motd.cpp;h=38117be6b0feb6ca8a52e3ae3f0d63ef76f7f83e;hb=316e19f10c1d30215a2617f44ca61f8d6d2559a8;hp=7cd8f2c08a5882abb2989a58b178e1cddca8f078;hpb=77123f4dec9f29105f6c0ceea0262cfe8e9eaa1a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_motd.cpp b/src/cmd_motd.cpp index 7cd8f2c08..38117be6b 100644 --- a/src/cmd_motd.cpp +++ b/src/cmd_motd.cpp @@ -2,24 +2,27 @@ * | 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 "users.h" -#include "commands.h" -#include "helperfuncs.h" -#include "cmd_motd.h" +#include "inspircd.h" +#include "commands/cmd_motd.h" -void cmd_motd::Handle (char **parameters, int pcnt, userrec *user) +extern "C" DllExport command_t* init_command(InspIRCd* Instance) { - ShowMOTD(user); + return new cmd_motd(Instance); +} + +/** Handle /MOTD + */ +CmdResult cmd_motd::Handle (const char** parameters, int pcnt, userrec *user) +{ + user->ShowMOTD(); + return CMD_SUCCESS; }