Core/WorldSession: Add RBAC permission for skipping idle connection check

Port From (https://github.com/TrinityCore/TrinityCore/commit/7625bd960ebc4fab970fb27072aececf9e936e2f)
This commit is contained in:
hondacrx
2021-01-03 15:12:23 -05:00
parent 15a69ae550
commit bcd18b8f26
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ namespace Game
// Before we process anything:
/// If necessary, kick the player because the client didn't send anything for too long
/// (or they've been idling in character select)
if (IsConnectionIdle())
if (IsConnectionIdle() && !HasPermission(RBACPermissions.IgnoreIdleConnection))
m_Socket[(int)ConnectionType.Realm].CloseSocket();
WorldPacket firstDelayedPacket = null;