]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_motd.cpp
Auto loading of commands as shared objects via dlsym (very lightweight interface...
[user/henk/code/inspircd.git] / src / cmd_motd.cpp
index 2efd8d55bef44de43f97f9a8d8baa4d15c7d3fdf..04542db17c610a3f4fd51d742326bf3881a47d0c 100644 (file)
  */
 
 #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)
+{
+       return new cmd_motd(Instance);
+}
+
+void cmd_motd::Handle (const char** parameters, int pcnt, userrec *user)
 {
-       ShowMOTD(user);
+       user->ShowMOTD();
 }