From 1064b6732975ad32ac32147974a3af2d888a7e12 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 27 Apr 2009 15:30:03 +0000 Subject: 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 --- src/commands/cmd_away.cpp | 4 ++-- 1 file 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& 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& 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(); -- cgit v1.2.3