summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-27 15:30:03 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-27 15:30:03 +0000
commit1064b6732975ad32ac32147974a3af2d888a7e12 (patch)
treeccc225a9b97f440b951be8938020ea9c58dac6fc /src
parent80b24fd2d38a47ee5c129ccf3bb54172345771dc (diff)
Fix OnSetAway hook denying remote users' change rather than local users
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11334 e03df62e-2008-0410-955e-edbf42e46eb7
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();