From 3ec29b33e6a342bf03455d671ececc8950fe1ca8 Mon Sep 17 00:00:00 2001 From: Deku Date: Sat, 23 Dec 2017 11:06:24 -0300 Subject: [PATCH] Delete unused command --- src/cs_anticheat.cpp | 43 ++++++------------------------------------- 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/src/cs_anticheat.cpp b/src/cs_anticheat.cpp index 9b720f0..f0cd5a6 100644 --- a/src/cs_anticheat.cpp +++ b/src/cs_anticheat.cpp @@ -28,19 +28,16 @@ public: { static std::vector anticheatCommandTable = { - { "global", SEC_GAMEMASTER, true, &HandleAntiCheatGlobalCommand, "" }, - { "player", SEC_GAMEMASTER, true, &HandleAntiCheatPlayerCommand, "" }, - { "delete", SEC_ADMINISTRATOR, true, &HandleAntiCheatDeleteCommand, "" }, - { "handle", SEC_ADMINISTRATOR, true, &HandleAntiCheatHandleCommand, "" }, - { "jail", SEC_GAMEMASTER, true, &HandleAnticheatJailCommand, "" }, - { "warn", SEC_GAMEMASTER, true, &HandleAnticheatWarnCommand, "" }, -// { NULL, 0, false, NULL, "", NULL } + { "global", SEC_GAMEMASTER, true, &HandleAntiCheatGlobalCommand, "" }, + { "player", SEC_GAMEMASTER, true, &HandleAntiCheatPlayerCommand, "" }, + { "delete", SEC_ADMINISTRATOR, true, &HandleAntiCheatDeleteCommand, "" }, + { "jail", SEC_GAMEMASTER, false, &HandleAnticheatJailCommand, "" }, + { "warn", SEC_GAMEMASTER, true, &HandleAnticheatWarnCommand, "" } }; static std::vector commandTable = { - { "anticheat", SEC_GAMEMASTER, true, NULL, "", anticheatCommandTable}, -// { NULL, 0, false, NULL, "", NULL } + { "anticheat", SEC_GAMEMASTER, true, NULL, "", anticheatCommandTable}, }; return commandTable; @@ -215,34 +212,6 @@ public: return true; } - static bool HandleAntiCheatHandleCommand(ChatHandler* handler, const char* args) - { - /* std::string strCommand; - - char* command = strtok((char*)args, " "); - - if (!command) - return true; - - if (!handler->GetSession()->GetPlayer()) - return true; - - strCommand = command; - - if (strCommand.compare("on") == 0) - { - sWorld->setBoolConfig(CONFIG_ANTICHEAT_ENABLE,true); - handler->SendSysMessage("The Anticheat System is now: Enabled!"); - } - else if (strCommand.compare("off") == 0) - { - sWorld->setBoolConfig(CONFIG_ANTICHEAT_ENABLE,false); - handler->SendSysMessage("The Anticheat System is now: Disabled!"); - }*/ - handler->PSendSysMessage("Please change value in config file and reload to disable/enable anticheat system."); - return true; - } - static bool HandleAntiCheatGlobalCommand(ChatHandler* handler, const char* /* args */) { if (!sConfigMgr->GetBoolDefault("Anticheat.Enabled", 0))