]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setname.cpp
Include untranslated user/channel metadata in CHECK output
[user/henk/code/inspircd.git] / src / modules / m_setname.cpp
index 846edf0fef7fbe0aaa078a10e3fb234243726ce1..00c76c848ee1acb67a156363eb14b383b4175993 100644 (file)
@@ -47,22 +47,19 @@ class CommandSetname : public Command
                        return CMD_SUCCESS;
                }
 
-               return CMD_SUCCESS;
+               return CMD_LOCALONLY;
        }
 };
 
 
 class ModuleSetName : public Module
 {
-       CommandSetname* mycommand;
+       CommandSetname cmd;
  public:
        ModuleSetName(InspIRCd* Me)
-               : Module(Me)
+               : Module(Me), cmd(Me)
        {
-
-               mycommand = new CommandSetname(ServerInstance);
-               ServerInstance->AddCommand(mycommand);
-
+               ServerInstance->AddCommand(&cmd);
        }
 
        virtual ~ModuleSetName()
@@ -71,9 +68,8 @@ class ModuleSetName : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_VENDOR, API_VERSION);
        }
-
 };
 
 MODULE_INIT(ModuleSetName)