]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgident.cpp
Add initial query support to m_mysql [patch by Athenon]
[user/henk/code/inspircd.git] / src / modules / m_chgident.cpp
index 9dc8cbd50c22406e7c67860e46bc03b22384d803..58a06cbd8366104ed05439dc9b43e2d4ead3bdd8 100644 (file)
@@ -20,9 +20,8 @@
 class CommandChgident : public Command
 {
  public:
-       CommandChgident (InspIRCd* Instance) : Command(Instance,"CHGIDENT", "o", 2)
+       CommandChgident (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"CHGIDENT", "o", 2)
        {
-               this->source = "m_chgident.so";
                syntax = "<nick> <newident>";
                TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
        }
@@ -71,7 +70,7 @@ class ModuleChgIdent : public Module
        CommandChgident cmd;
 
 public:
-       ModuleChgIdent(InspIRCd* Me) : Module(Me), cmd(Me)
+       ModuleChgIdent(InspIRCd* Me) : Module(Me), cmd(Me, this)
        {
                ServerInstance->AddCommand(&cmd);
        }