]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
m_spanningtree Call the collision handler with the proper parameter (client ip instea...
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index 6cd94c98268b37e928cdc0f84586e5cd45e3eccf..0d6b1d9f3f55237e506e5c6715545e196935ce3f 100644 (file)
@@ -1,16 +1,24 @@
-/*       +------------------------------------+
- *       | 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) 2007 Dennis Friis <peavey@inspircd.org>
+ *   Copyright (C) 2007 Robin Burchell <robin+git@viroteck.net>
+ *   Copyright (C) 2004-2005 Craig Edwards <craigedwards@brainbox.cc>
  *
- * 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"
 
 /* $ModDesc: Provides support for the SETNAME command */
@@ -20,7 +28,7 @@
 class CommandSetname : public Command
 {
  public:
-       CommandSetname (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"SETNAME", 0, 1, 1)
+       CommandSetname(Module* Creator) : Command(Creator,"SETNAME", 1, 1)
        {
                syntax = "<new-gecos>";
                TRANSLATE2(TR_TEXT, TR_END);
@@ -46,7 +54,7 @@ class CommandSetname : public Command
                        return CMD_SUCCESS;
                }
 
-               return CMD_LOCALONLY;
+               return CMD_SUCCESS;
        }
 };
 
@@ -55,8 +63,8 @@ class ModuleSetName : public Module
 {
        CommandSetname cmd;
  public:
-       ModuleSetName(InspIRCd* Me)
-               : Module(Me), cmd(Me, this)
+       ModuleSetName()
+               : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -67,7 +75,7 @@ class ModuleSetName : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("Provides support for the SETNAME command", VF_VENDOR);
        }
 };