mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user