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
@@ -57,7 +57,7 @@ namespace Framework.Constants
JoinRandomBg = 4,
JoinArenas = 5,
JoinDungeonFinder = 6,
// 7 - Reuse
IgnoreIdleConnection = 7,
// 8 - Reuse
// 9 - Reuse
UseCharacterTemplates = 10,
+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;