]> 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 64c16e914400bf0c826af17345be610423a63f8d..aecc711e4e329e5973ce504172b51e9fbd829018 100644 (file)
  * ---------------------------------------------------
  */
 
-#include <vector>
-#include "inspircd_config.h"
 #include "configreader.h"
 #include "users.h"
 #include "modules.h"
-#include "commands.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]))
        {
@@ -39,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;
 }