X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_password_hash.cpp;h=e91bedd70ce4f08f63ad707535570ee55c9ad27f;hb=8cebe2878f3878afce6f643d93668155cb26801d;hp=52c8f241cb77382df7fdd016a053f0f8d4479c40;hpb=0da6b3a13def40e8fd002b9fc60f955467f6372d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_password_hash.cpp b/src/modules/m_password_hash.cpp index 52c8f241c..e91bedd70 100644 --- a/src/modules/m_password_hash.cpp +++ b/src/modules/m_password_hash.cpp @@ -71,7 +71,7 @@ class CommandMkpasswd : public Command class ModuleOperHash : public Module { - CommandMkpasswd* mycommand; + CommandMkpasswd cmd; hashymodules hashers; /* List of modules which implement HashRequest */ std::deque names; /* Module names which implement HashRequest */ @@ -79,7 +79,7 @@ class ModuleOperHash : public Module public: ModuleOperHash(InspIRCd* Me) - : Module(Me) + : Module(Me), cmd(Me, this, hashers, names) { diduseiface = false; @@ -109,8 +109,7 @@ class ModuleOperHash : public Module diduseiface = true; } - mycommand = new CommandMkpasswd(ServerInstance, this, hashers, names); - ServerInstance->AddCommand(mycommand); + ServerInstance->AddCommand(&cmd); Implementation eventlist[] = { I_OnPassCompare, I_OnLoadModule }; ServerInstance->Modules->Attach(eventlist, this, 2); }