summaryrefslogtreecommitdiff
path: root/src/cmd_away.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_away.cpp')
-rw-r--r--src/cmd_away.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd_away.cpp b/src/cmd_away.cpp
index fa944932f..aecc711e4 100644
--- a/src/cmd_away.cpp
+++ b/src/cmd_away.cpp
@@ -26,7 +26,7 @@ extern "C" command_t* init_command(InspIRCd* Instance)
return new cmd_away(Instance);
}
-void cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
{
if ((pcnt) && (*parameters[0]))
{
@@ -40,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;
}