]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
Remove spanningtree override of /LUSERS
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index b70939ca2b4a43f2efa770d80a27af7758a25409..bfb8f116f8d5d5bdbbacffe6d6af15d03d05c7ca 100644 (file)
@@ -20,9 +20,8 @@
 class CommandSetname : public Command
 {
  public:
-       CommandSetname (InspIRCd* Instance) : Command(Instance,"SETNAME", 0, 1, 1)
+       CommandSetname(Module* Creator) : Command(Creator,"SETNAME", 1, 1)
        {
-               this->source = "m_setname.so";
                syntax = "<new-gecos>";
                TRANSLATE2(TR_TEXT, TR_END);
        }
@@ -47,22 +46,19 @@ class CommandSetname : public Command
                        return CMD_SUCCESS;
                }
 
-               return CMD_LOCALONLY;
+               return CMD_SUCCESS;
        }
 };
 
 
 class ModuleSetName : public Module
 {
-       CommandSetname* mycommand;
+       CommandSetname cmd;
  public:
-       ModuleSetName(InspIRCd* Me)
-               : Module(Me)
+       ModuleSetName()
+               : cmd(this)
        {
-
-               mycommand = new CommandSetname(ServerInstance);
-               ServerInstance->AddCommand(mycommand);
-
+               ServerInstance->AddCommand(&cmd);
        }
 
        virtual ~ModuleSetName()
@@ -71,7 +67,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);
        }
 };