X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_motd.cpp;h=04542db17c610a3f4fd51d742326bf3881a47d0c;hb=1b7c615062a7b203c7fc3ce4c56e16eb671f7c15;hp=7cd8f2c08a5882abb2989a58b178e1cddca8f078;hpb=77123f4dec9f29105f6c0ceea0262cfe8e9eaa1a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_motd.cpp b/src/cmd_motd.cpp index 7cd8f2c08..04542db17 100644 --- a/src/cmd_motd.cpp +++ b/src/cmd_motd.cpp @@ -15,11 +15,16 @@ */ #include "users.h" -#include "commands.h" -#include "helperfuncs.h" -#include "cmd_motd.h" +#include "commands/cmd_motd.h" -void cmd_motd::Handle (char **parameters, int pcnt, userrec *user) + + +extern "C" command_t* init_command(InspIRCd* Instance) +{ + return new cmd_motd(Instance); +} + +void cmd_motd::Handle (const char** parameters, int pcnt, userrec *user) { - ShowMOTD(user); + user->ShowMOTD(); }