]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgident.cpp
Fix access checks on chanprotect preventing use of SAMODE
[user/henk/code/inspircd.git] / src / modules / m_chgident.cpp
index d5269105434fa9b2c5ca419d5c2961d4c672d9e7..b570feb46e09a8d68255da281714ca7c4dc9e9c9 100644 (file)
@@ -20,9 +20,9 @@
 class CommandChgident : public Command
 {
  public:
-       CommandChgident (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"CHGIDENT", "o", 2)
+       CommandChgident(Module* Creator) : Command(Creator,"CHGIDENT", 2)
        {
-               syntax = "<nick> <newident>";
+               flags_needed = 'o'; syntax = "<nick> <newident>";
                TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
        }
 
@@ -80,7 +80,7 @@ class ModuleChgIdent : public Module
        CommandChgident cmd;
 
 public:
-       ModuleChgIdent(InspIRCd* Me) : Module(Me), cmd(Me, this)
+       ModuleChgIdent(InspIRCd* Me) : Module(Me), cmd(this)
        {
                ServerInstance->AddCommand(&cmd);
        }