summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-11 19:53:16 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-11 19:53:16 +0000
commit516da6a00f6c45171eec385bd8b1bd1f1f88cc32 (patch)
treec3c5fbaf2f34b6e05303f58e0b4fac4470b81a71
parent9331a84cc07f1cf55f570b61be24a04ff6766e86 (diff)
Make MODENOTICE oper-only, noticed by jackmcbarn
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12623 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands/cmd_modenotice.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commands/cmd_modenotice.cpp b/src/commands/cmd_modenotice.cpp
index 359474a35..d466ee2d1 100644
--- a/src/commands/cmd_modenotice.cpp
+++ b/src/commands/cmd_modenotice.cpp
@@ -16,7 +16,11 @@
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)
{