]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_rehash.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_rehash.cpp
index f7017da4e991e6221f03ba3d4f441e6461c24299..f53f810a49544ef94acfb3c2611a999af804940a 100644 (file)
 #include "modules.h"
 #include "commands/cmd_rehash.h"
 
-void cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user)
+
+
+extern "C" command_t* init_command(InspIRCd* Instance)
+{
+       return new cmd_rehash(Instance);
+}
+
+CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user)
 {
        user->WriteServ("382 %s %s :Rehashing",user->nick,ServerConfig::CleanFilename(CONFIG_FILE));
        std::string parameter = "";
@@ -33,4 +40,7 @@ void cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user)
                ServerInstance->Config->Read(false,user);
        }
        FOREACH_MOD(I_OnRehash,OnRehash(parameter));
+
+       return CMD_SUCCESS;
 }
+