]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setident.cpp
Make VF_OPTCOMMON module mismatches a fatal link error by default
[user/henk/code/inspircd.git] / src / modules / m_setident.cpp
index 805ca4eb09f263b9c0de071ab8db0ae0a02a5cc0..7823b041b86db4c898be6e40c80c3408b7222da1 100644 (file)
@@ -57,15 +57,12 @@ class CommandSetident : public Command
 
 class ModuleSetIdent : public Module
 {
-       CommandSetident*        mycommand;
+       CommandSetident cmd;
 
  public:
-       ModuleSetIdent(InspIRCd* Me) : Module(Me)
+       ModuleSetIdent(InspIRCd* Me) : Module(Me), cmd(Me)
        {
-
-               mycommand = new CommandSetident(ServerInstance);
-               ServerInstance->AddCommand(mycommand);
-
+               ServerInstance->AddCommand(&cmd);
        }
 
        virtual ~ModuleSetIdent()