summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_away.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_away.cpp b/src/commands/cmd_away.cpp
index bbcc40b85..aba803134 100644
--- a/src/commands/cmd_away.cpp
+++ b/src/commands/cmd_away.cpp
@@ -29,7 +29,7 @@ CmdResult CommandAway::Handle (const std::vector<std::string>& parameters, User
{
FOREACH_RESULT(I_OnSetAway, OnSetAway(user, parameters[0]));
- if (MOD_RESULT != 0 && !IS_LOCAL(user))
+ if (MOD_RESULT != 0 && IS_LOCAL(user))
return CMD_FAILURE;
user->awaytime = ServerInstance->Time();
@@ -41,7 +41,7 @@ CmdResult CommandAway::Handle (const std::vector<std::string>& parameters, User
{
FOREACH_RESULT(I_OnSetAway, OnSetAway(user, ""));
- if (MOD_RESULT != 0 && !IS_LOCAL(user))
+ if (MOD_RESULT != 0 && IS_LOCAL(user))
return CMD_FAILURE;
user->awaymsg.clear();