]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_clearcache.cpp
Merge pull request #16 from Adam-/insp20
[user/henk/code/inspircd.git] / src / commands / cmd_clearcache.cpp
index 6303fa52852d5c05279eadd8a1a882e06c10014f..c5492a8b65c92f57486aa4b60b16262dd92d322b 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
 
 #include "inspircd.h"
 
-#ifndef __CMD_ADMIN_H__
-#define __CMD_ADMIN_H__
-
 #include "users.h"
 #include "channels.h"
 #include "ctables.h"
 
-/** Handle /ADMIN. These command handlers can be reloaded by the core,
+/** Handle /CLEARCACHE. These command handlers can be reloaded by the core,
  * and handle basic RFC1459 commands. Commands within modules work
  * the same way, however, they can be fully unloaded, where these
  * may not.
@@ -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)