]> 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 f6c76dac4d9397e168f48fe973615785418fe5f3..019b132288a54e7409780632a2410f6e1e1872ba 100644 (file)
  */
 
 #include "inspircd.h"
-#include "users.h"
 #include "commands/cmd_motd.h"
 
-extern "C" DllExport 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;
 }