Core/WorldSession: Add RBAC permission for skipping idle connection check
Port From (https://github.com/TrinityCore/TrinityCore/commit/7625bd960ebc4fab970fb27072aececf9e936e2f)
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Framework.Constants
|
||||
JoinRandomBg = 4,
|
||||
JoinArenas = 5,
|
||||
JoinDungeonFinder = 6,
|
||||
// 7 - Reuse
|
||||
IgnoreIdleConnection = 7,
|
||||
// 8 - Reuse
|
||||
// 9 - Reuse
|
||||
UseCharacterTemplates = 10,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user