]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_away.cpp
Read multiple GnuTLS records in one RawSocketRead operation
[user/henk/code/inspircd.git] / src / commands / cmd_away.cpp
index 787a0e8b1e6cbc97bce276a6d805bd51aff11cfb..aba8031349b7a53723a7630be6bc754b6634fff8 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -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();