Core/Network: Fix logic mistake with RBAC_PERM_SKIP_CHECK_OVERSPEED_PING, fixes getting kicked while pausing worldserver under debugger

This commit is contained in:
Shauren
2025-09-20 12:59:15 +02:00
parent 70a1d6ce7d
commit a7f15e7f20

View File

@@ -1069,7 +1069,7 @@ bool WorldSocket::HandlePing(WorldPackets::Auth::Ping& ping)
bool ignoresOverspeedPingsLimit = [&]
{
std::lock_guard<std::mutex> sessionGuard(_worldSessionLock);
return _worldSession && !_worldSession->HasPermission(rbac::RBAC_PERM_SKIP_CHECK_OVERSPEED_PING);
return _worldSession && _worldSession->HasPermission(rbac::RBAC_PERM_SKIP_CHECK_OVERSPEED_PING);
}();
if (!ignoresOverspeedPingsLimit)