]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_clearcache.cpp
Add fine-grained command flood controls
[user/henk/code/inspircd.git] / src / commands / cmd_clearcache.cpp
index 6303fa52852d5c05279eadd8a1a882e06c10014f..1fc8a1241ffdbc066a22897cc73735abd676e0b3 100644 (file)
@@ -13,9 +13,6 @@
 
 #include "inspircd.h"
 
-#ifndef __CMD_ADMIN_H__
-#define __CMD_ADMIN_H__
-
 #include "users.h"
 #include "channels.h"
 #include "ctables.h"
@@ -30,7 +27,7 @@ class CommandClearcache : public Command
  public:
        /** Constructor for clearcache.
         */
-       CommandClearcache (InspIRCd* Instance, Module* parent) : Command(Instance,parent,"CLEARCACHE","o",0) { }
+       CommandClearcache ( Module* parent) : Command(parent,"CLEARCACHE",0) { flags_needed = 'o'; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
@@ -40,9 +37,6 @@ class CommandClearcache : public Command
        CmdResult Handle(const std::vector<std::string>& parameters, User *user);
 };
 
-#endif
-
-
 /** Handle /CLEARCACHE
  */
 CmdResult CommandClearcache::Handle (const std::vector<std::string>& parameters, User *user)