]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_away.cpp
m_dccallow Fix unsafe iteration
[user/henk/code/inspircd.git] / src / commands / cmd_away.cpp
index d93f74559a85abd32a49aa7293df3c392c392ac0..cd47e49efedb71cb6499a55d7b22b1097cd1a92b 100644 (file)
@@ -1,20 +1,27 @@
-/*       +------------------------------------+
- *       | Inspire Internet Relay Chat Daemon |
- *       +------------------------------------+
+/*
+ * InspIRCd -- Internet Relay Chat Daemon
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://wiki.inspircd.org/Credits
+ *   Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
+ *   Copyright (C) 2007 Robin Burchell <robin+git@viroteck.net>
  *
- * This program is free but copyrighted software; see
- *            the file COPYING for details.
+ * This file is part of InspIRCd.  InspIRCd is free software: you can
+ * redistribute it and/or modify it under the terms of the GNU General Public
+ * License as published by the Free Software Foundation, version 2.
  *
- * ---------------------------------------------------
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+
 #include "inspircd.h"
 
-#ifndef __CMD_AWAY_H__
-#define __CMD_AWAY_H__
+#ifndef CMD_AWAY_H
+#define CMD_AWAY_H
 
 // include the common header files
 
@@ -52,7 +59,7 @@ CmdResult CommandAway::Handle (const std::vector<std::string>& parameters, User
 
        if ((parameters.size()) && (!parameters[0].empty()))
        {
-               FIRST_MOD_RESULT(ServerInstance, OnSetAway, MOD_RESULT, (user, parameters[0]));
+               FIRST_MOD_RESULT(OnSetAway, MOD_RESULT, (user, parameters[0]));
 
                if (MOD_RESULT == MOD_RES_DENY && IS_LOCAL(user))
                        return CMD_FAILURE;
@@ -64,7 +71,7 @@ CmdResult CommandAway::Handle (const std::vector<std::string>& parameters, User
        }
        else
        {
-               FIRST_MOD_RESULT(ServerInstance, OnSetAway, MOD_RESULT, (user, ""));
+               FIRST_MOD_RESULT(OnSetAway, MOD_RESULT, (user, ""));
 
                if (MOD_RESULT == MOD_RES_DENY && IS_LOCAL(user))
                        return CMD_FAILURE;