]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_away.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_away.cpp
index 6746cf5e2cb775d12ad94592a9029c1264b7bca6..aecc711e4e329e5973ce504172b51e9fbd829018 100644 (file)
 #include "modules.h"
 #include "commands/cmd_away.h"
 
-void cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
+
+
+extern "C" command_t* init_command(InspIRCd* Instance)
+{
+       return new cmd_away(Instance);
+}
+
+CmdResult cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
 {
        if ((pcnt) && (*parameters[0]))
        {
@@ -33,4 +40,5 @@ void cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
                user->WriteServ("305 %s :You are no longer marked as being away",user->nick);
                FOREACH_MOD(I_OnCancelAway,OnCancelAway(user));
        }
+       return CMD_SUCCESS;
 }