feat(Core/Warden): Allow sending of custom lua payloads through Warden. (#14723)

This commit is contained in:
AnchyDev
2023-02-13 10:42:58 +11:00
committed by GitHub
parent 6354d1598e
commit 246b20683f
8 changed files with 559 additions and 99 deletions

View File

@@ -1297,6 +1297,11 @@ void WorldSession::InitWarden(SessionKey const& k, std::string const& os)
}
}
Warden* WorldSession::GetWarden()
{
return &(*_warden);
}
bool WorldSession::DosProtection::EvaluateOpcode(WorldPacket& p, time_t time) const
{
uint32 maxPacketCounterAllowed = GetMaxPacketCounterAllowed(p.GetOpcode());