]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_clearcache.cpp
Fixed an issue that could cause empty parameters in module commands to not be sent...
[user/henk/code/inspircd.git] / src / cmd_clearcache.cpp
index 22e219a8359d3b26d209ed9d064faddbe5d6d235..333593425d8ba99c3017ccd727149f6dce2a4bbb 100644 (file)
  * ---------------------------------------------------
  */
 
-#include "configreader.h"
-#include "users.h"
-#include "commands/cmd_admin.h"
+#include "inspircd.h"
+#include "commands/cmd_clearcache.h"
 
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
 {
-       return new cmd_admin(Instance);
+       return new cmd_clearcache(Instance);
 }
 
-/** Handle /ADMIN
+/** Handle /CLEARCACHE
  */
-CmdResult cmd_admin::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_clearcache::Handle (const char** parameters, int pcnt, userrec *user)
 {
        int n = ServerInstance->Res->ClearCache();
        user->WriteServ("NOTICE %s :*** Cleared DNS cache of %d items.", user->nick, n);