X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_motd.cpp;h=48edaec5e2c4a067dc75583d8c0da86e153b472d;hb=b0e469b0bbdbc76692364e1f52ef613cc02a2a06;hp=a8cee2727fc8ced28a9a4dc2f71523e1f69d1be2;hpb=0757a4a495daabf661ac3b7ab79f0a5ee423abe8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_motd.cpp b/src/cmd_motd.cpp index a8cee2727..48edaec5e 100644 --- a/src/cmd_motd.cpp +++ b/src/cmd_motd.cpp @@ -2,12 +2,9 @@ * | 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. * @@ -15,11 +12,18 @@ */ #include "users.h" -#include "commands.h" -#include "helperfuncs.h" #include "commands/cmd_motd.h" -void cmd_motd::Handle (const char** parameters, int pcnt, userrec *user) +extern "C" 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) +{ + if (!pcnt) + user->ShowMOTD(); + return CMD_SUCCESS; }