X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_clearcache.cpp;h=1fc8a1241ffdbc066a22897cc73735abd676e0b3;hb=0f87ad0d4b97874823c94a5168a06dcd444ad559;hp=6303fa52852d5c05279eadd8a1a882e06c10014f;hpb=f4472dd6dcdfbb5d4a2a50ddc615644c3b2c8145;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_clearcache.cpp b/src/commands/cmd_clearcache.cpp index 6303fa528..1fc8a1241 100644 --- a/src/commands/cmd_clearcache.cpp +++ b/src/commands/cmd_clearcache.cpp @@ -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& parameters, User *user); }; -#endif - - /** Handle /CLEARCACHE */ CmdResult CommandClearcache::Handle (const std::vector& parameters, User *user)