]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
Flexible SendQ
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index 00c76c848ee1acb67a156363eb14b383b4175993..c0e32da7329a137c99dd3263f9280e24c4e287c9 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,7 +46,7 @@ class CommandSetname : public Command
                        return CMD_SUCCESS;
                }
 
-               return CMD_LOCALONLY;
+               return CMD_SUCCESS;
        }
 };
 
@@ -56,8 +55,8 @@ class ModuleSetName : public Module
 {
        CommandSetname cmd;
  public:
-       ModuleSetName(InspIRCd* Me)
-               : Module(Me), cmd(Me)
+       ModuleSetName()
+               : cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }
@@ -68,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, API_VERSION);
        }
 };