]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Make MODENOTICE oper-only, noticed by jackmcbarn
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 11 Mar 2010 19:53:16 +0000 (19:53 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 11 Mar 2010 19:53:16 +0000 (19:53 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12623 e03df62e-2008-0410-955e-edbf42e46eb7

src/commands/cmd_modenotice.cpp

index 359474a356917b6f70099df55bee56bc3c8512e9..d466ee2d1c714c32254ef1f6e87cb0ea365e4447 100644 (file)
 class CommandModeNotice : public Command
 {
  public:
-       CommandModeNotice(Module* parent) : Command(parent,"MODENOTICE",2,2) { syntax = "<modes> <message>"; }
+       CommandModeNotice(Module* parent) : Command(parent,"MODENOTICE",2,2)
+       {
+               syntax = "<modes> <message>";
+               flags_needed = 'o';
+       }
 
        CmdResult Handle(const std::vector<std::string>& parameters, User *src)
        {