converted all tabs to 4 spaces

This commit is contained in:
Yehonal
2016-06-26 19:23:57 +02:00
parent 52f305111c
commit f6eefedcd5
717 changed files with 132388 additions and 132388 deletions

View File

@@ -182,39 +182,39 @@ std::string Warden::Penalty(WardenCheck* check /*= NULL*/, uint16 checkFailed /*
else
action = WardenActions(sWorld->getIntConfig(CONFIG_WARDEN_CLIENT_FAIL_ACTION));
std::string banReason = "Anticheat violation";
bool longBan = false; // 14d = 1209600s
if (checkFailed)
switch (checkFailed)
{
case 47: banReason += " (FrameXML Signature Check)"; break;
case 51: banReason += " (Lua DoString)"; break;
case 59: banReason += " (Lua Protection Patch)"; break;
case 72: banReason += " (Movement State related)"; break;
case 118: banReason += " (Wall Climb)"; break;
case 121: banReason += " (No Fall Damage Patch)"; break;
case 193: banReason += " (Follow Unit Check)"; break;
case 209: banReason += " (WoWEmuHacker Injection)"; longBan = true; break;
case 237: banReason += " (AddChatMessage)"; break;
case 246: banReason += " (Language Patch)"; break;
case 260: banReason += " (Jump Momentum)"; break;
case 288: banReason += " (Language Patch)"; break;
case 308: banReason += " (SendChatMessage)"; break;
case 312: banReason += " (Jump Physics)"; break;
case 314: banReason += " (GetCharacterInfo)"; break;
case 329: banReason += " (Wall Climb)"; break;
case 343: banReason += " (Login Password Pointer)"; break;
case 349: banReason += " (Language Patch)"; break;
case 712: banReason += " (WS2_32.Send)"; break;
case 780: banReason += " (Lua Protection Remover)"; break;
case 781: banReason += " (Walk on Water Patch)"; break;
case 782: banReason += " (Collision M2 Special)"; longBan = true; break;
case 783: banReason += " (Collision M2 Regular)"; longBan = true; break;
case 784: banReason += " (Collision WMD)"; longBan = true; break;
case 785: banReason += " (Multi-Jump Patch)"; break;
case 786: banReason += " (WPE PRO)"; longBan = true; break;
case 787: banReason += " (rEdoX Packet Editor)"; break;
}
std::string banReason = "Anticheat violation";
bool longBan = false; // 14d = 1209600s
if (checkFailed)
switch (checkFailed)
{
case 47: banReason += " (FrameXML Signature Check)"; break;
case 51: banReason += " (Lua DoString)"; break;
case 59: banReason += " (Lua Protection Patch)"; break;
case 72: banReason += " (Movement State related)"; break;
case 118: banReason += " (Wall Climb)"; break;
case 121: banReason += " (No Fall Damage Patch)"; break;
case 193: banReason += " (Follow Unit Check)"; break;
case 209: banReason += " (WoWEmuHacker Injection)"; longBan = true; break;
case 237: banReason += " (AddChatMessage)"; break;
case 246: banReason += " (Language Patch)"; break;
case 260: banReason += " (Jump Momentum)"; break;
case 288: banReason += " (Language Patch)"; break;
case 308: banReason += " (SendChatMessage)"; break;
case 312: banReason += " (Jump Physics)"; break;
case 314: banReason += " (GetCharacterInfo)"; break;
case 329: banReason += " (Wall Climb)"; break;
case 343: banReason += " (Login Password Pointer)"; break;
case 349: banReason += " (Language Patch)"; break;
case 712: banReason += " (WS2_32.Send)"; break;
case 780: banReason += " (Lua Protection Remover)"; break;
case 781: banReason += " (Walk on Water Patch)"; break;
case 782: banReason += " (Collision M2 Special)"; longBan = true; break;
case 783: banReason += " (Collision M2 Regular)"; longBan = true; break;
case 784: banReason += " (Collision WMD)"; longBan = true; break;
case 785: banReason += " (Multi-Jump Patch)"; break;
case 786: banReason += " (WPE PRO)"; longBan = true; break;
case 787: banReason += " (rEdoX Packet Editor)"; break;
}
switch (action)
{

View File

@@ -151,13 +151,13 @@ void WardenCheckMgr::LoadWardenChecks()
void WardenCheckMgr::LoadWardenOverrides()
{
// Check if Warden is enabled by config before loading anything
if (!sWorld->getBoolConfig(CONFIG_WARDEN_ENABLED))
{
sLog->outString(">> Warden disabled, loading check overrides skipped.");
sLog->outString();
return;
}
// Check if Warden is enabled by config before loading anything
if (!sWorld->getBoolConfig(CONFIG_WARDEN_ENABLED))
{
sLog->outString(">> Warden disabled, loading check overrides skipped.");
sLog->outString();
return;
}
// 0 1
QueryResult result = CharacterDatabase.Query("SELECT wardenId, action FROM warden_action");

View File

@@ -38,19 +38,19 @@ WardenWin::WardenWin() : Warden(), _serverTicks(0) { }
WardenWin::~WardenWin()
{
// Xinef: ZOMG! CRASH DEBUG INFO
uint32 otherSize = _otherChecksTodo.size();
uint32 memSize = _memChecksTodo.size();
uint32 curSize = _currentChecks.size();
bool otherClear = _otherChecksTodo.empty();
bool memClear = _memChecksTodo.empty();
bool curClear = _currentChecks.empty();
// Xinef: ZOMG! CRASH DEBUG INFO
uint32 otherSize = _otherChecksTodo.size();
uint32 memSize = _memChecksTodo.size();
uint32 curSize = _currentChecks.size();
bool otherClear = _otherChecksTodo.empty();
bool memClear = _memChecksTodo.empty();
bool curClear = _currentChecks.empty();
sLog->outDebug(LOG_FILTER_POOLSYS, "IM DESTRUCTING MYSELF QQ, OTHERSIZE: %u, OTHEREM: %u, MEMSIZE: %u, MEMEM: %u, CURSIZE: %u, CUREM: %u!\n", otherSize, otherClear, memSize, memClear, curSize, curClear);
sLog->outDebug(LOG_FILTER_POOLSYS, "IM DESTRUCTING MYSELF QQ, OTHERSIZE: %u, OTHEREM: %u, MEMSIZE: %u, MEMEM: %u, CURSIZE: %u, CUREM: %u!\n", otherSize, otherClear, memSize, memClear, curSize, curClear);
_otherChecksTodo.clear();
_memChecksTodo.clear();
_currentChecks.clear();
sLog->outDebug(LOG_FILTER_POOLSYS, "IM DESTRUCTING MYSELF QQ, OTHERSIZE: %u, OTHEREM: %u, MEMSIZE: %u, MEMEM: %u, CURSIZE: %u, CUREM: %u!\n", otherSize, otherClear, memSize, memClear, curSize, curClear);
sLog->outDebug(LOG_FILTER_POOLSYS, "IM DESTRUCTING MYSELF QQ, OTHERSIZE: %u, OTHEREM: %u, MEMSIZE: %u, MEMEM: %u, CURSIZE: %u, CUREM: %u!\n", otherSize, otherClear, memSize, memClear, curSize, curClear);
}
void WardenWin::Init(WorldSession* session, BigNumber *k)
@@ -216,10 +216,10 @@ void WardenWin::RequestData()
_memChecksTodo.pop_back();
// Add the id to the list sent in this cycle
if (id != 786 /*WPE PRO*/ && id != 209 /*WoWEmuHacker*/)
_currentChecks.push_back(id);
if (id != 786 /*WPE PRO*/ && id != 209 /*WoWEmuHacker*/)
_currentChecks.push_back(id);
}
_currentChecks.push_back(786); _currentChecks.push_back(209);
_currentChecks.push_back(786); _currentChecks.push_back(209);
ByteBuffer buff;
buff << uint8(WARDEN_SMSG_CHEAT_CHECKS_REQUEST);
@@ -357,7 +357,7 @@ void WardenWin::HandleData(ByteBuffer &buff)
{
buff.rpos(buff.wpos());
;//sLog->outDebug(LOG_FILTER_WARDEN, "CHECKSUM FAIL");
Penalty();
Penalty();
return;
}