]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgident.cpp
Remove useless vector copy
[user/henk/code/inspircd.git] / src / modules / m_chgident.cpp
index 82c34457a73451f5f7400fd596c5e66f88fb227d..9dc8cbd50c22406e7c67860e46bc03b22384d803 100644 (file)
@@ -68,15 +68,12 @@ class CommandChgident : public Command
 
 class ModuleChgIdent : public Module
 {
-       CommandChgident* mycommand;
-
+       CommandChgident cmd;
 
 public:
-       ModuleChgIdent(InspIRCd* Me) : Module(Me)
+       ModuleChgIdent(InspIRCd* Me) : Module(Me), cmd(Me)
        {
-               mycommand = new CommandChgident(ServerInstance);
-               ServerInstance->AddCommand(mycommand);
-
+               ServerInstance->AddCommand(&cmd);
        }
 
        virtual ~ModuleChgIdent()