X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_motd.cpp;h=551d76c9e1eb5804d893a37c52ceab6c164edabe;hb=6f4bf8ffd367f35b96265fea1ad01fb1acf2adcd;hp=2efd8d55bef44de43f97f9a8d8baa4d15c7d3fdf;hpb=24ac504f4b6dbcca3cb3ab91d3cbb40cc7a9ff33;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_motd.cpp b/src/cmd_motd.cpp index 2efd8d55b..551d76c9e 100644 --- a/src/cmd_motd.cpp +++ b/src/cmd_motd.cpp @@ -15,11 +15,18 @@ */ #include "users.h" -#include "commands.h" -#include "helperfuncs.h" #include "commands/cmd_motd.h" -void cmd_motd::Handle (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; }