]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_motd.cpp
Untested! New m_watch that should be hundreds of times faster (im not joking either)
[user/henk/code/inspircd.git] / src / cmd_motd.cpp
index a8cee2727fc8ced28a9a4dc2f71523e1f69d1be2..551d76c9e1eb5804d893a37c52ceab6c164edabe 100644 (file)
  */
 
 #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;
 }