]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_motd.cpp
InspSocket -> BufferedSocket. Paves the way for a SimpleSocket class which ident...
[user/henk/code/inspircd.git] / src / cmd_motd.cpp
index 48edaec5e2c4a067dc75583d8c0da86e153b472d..019b132288a54e7409780632a2410f6e1e1872ba 100644 (file)
  * ---------------------------------------------------
  */
 
-#include "users.h"
+#include "inspircd.h"
 #include "commands/cmd_motd.h"
 
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_motd(Instance);
 }
 
 /** Handle /MOTD
  */
-CmdResult cmd_motd::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_motd::Handle (const char** parameters, int pcnt, User *user)
 {
-       if (!pcnt)
-               user->ShowMOTD();
+       user->ShowMOTD();
        return CMD_SUCCESS;
 }