]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermotd.cpp
Fix access checks on chanprotect preventing use of SAMODE
[user/henk/code/inspircd.git] / src / modules / m_opermotd.cpp
index 6eb3a054021a00df798aa6d782206e0a1d82e9a2..87e8874e304d915709cd86117c23e5882c8d6bcb 100644 (file)
@@ -43,9 +43,9 @@ CmdResult ShowOperMOTD(User* user)
 class CommandOpermotd : public Command
 {
  public:
-       CommandOpermotd (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"OPERMOTD", "o", 0)
+       CommandOpermotd(Module* Creator) : Command(Creator,"OPERMOTD", 0)
        {
-               syntax = "[<servername>]";
+               flags_needed = 'o'; syntax = "[<servername>]";
        }
 
        CmdResult Handle (const std::vector<std::string>& parameters, User* user)
@@ -77,7 +77,7 @@ class ModuleOpermotd : public Module
        }
 
        ModuleOpermotd(InspIRCd* Me)
-               : Module(Me), cmd(Me, this)
+               : Module(Me), cmd(this)
        {
                opermotd = NULL;
                ServerInstance->AddCommand(&cmd);