* ---------------------------------------------------
*/
-#include <vector>
-#include "inspircd_config.h"
#include "configreader.h"
#include "users.h"
#include "modules.h"
-#include "commands.h"
-
#include "commands/cmd_away.h"
+extern "C" command_t* init_command(InspIRCd* Instance)
+{
+ return new cmd_away(Instance);
+}
-
-void cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
+/** Handle /AWAY
+ */
+CmdResult cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
{
if ((pcnt) && (*parameters[0]))
{
user->WriteServ("305 %s :You are no longer marked as being away",user->nick);
FOREACH_MOD(I_OnCancelAway,OnCancelAway(user));
}
+ return CMD_SUCCESS;
}