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());

View File

@@ -374,6 +374,7 @@ public:
uint32 GetTotalTime() const { return m_total_time; }
void InitWarden(SessionKey const&, std::string const& os);
Warden* GetWarden();
/// Session in auth.queue currently
void SetInQueue(bool state) { m_inQueue = state; }