]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_away.cpp
Patch to not increment nickchange counter for nick changes that would be blocked...
[user/henk/code/inspircd.git] / src / commands / cmd_away.cpp
index bbcc40b85bcade9953eea1ebb2e8190122fd843d..aba8031349b7a53723a7630be6bc754b6634fff8 100644 (file)
@@ -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();