]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_time.cpp
Made SANICK not collide the user (theres no need to in the new 1.1 now we have return...
[user/henk/code/inspircd.git] / src / cmd_time.cpp
index 9fb9cf702dafc8170753a6221f05d92127ad3653..c034d471580fdc10be1432b7443693c8df496e4a 100644 (file)
 #include "users.h"
 #include "commands/cmd_time.h"
 
-void cmd_time::Handle (const char** parameters, int pcnt, userrec *user)
+
+
+extern "C" command_t* init_command(InspIRCd* Instance)
+{
+       return new cmd_time(Instance);
+}
+
+CmdResult cmd_time::Handle (const char** parameters, int pcnt, userrec *user)
 {
        struct tm* timeinfo;
        time_t local = ServerInstance->Time();
@@ -30,5 +37,6 @@ void cmd_time::Handle (const char** parameters, int pcnt, userrec *user)
        tms[24] = 0;
 
        user->WriteServ("391 %s %s :%s",user->nick,ServerInstance->Config->ServerName,tms);
-  
+
+       return CMD_SUCCESS;
 }