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

This commit is contained in:
Aokromes committed 2017-10-14 15:13:18 +02:00
1 parent ba7e7554ec
commit 9ed805b6b6
4 files changed
+12 -5

No files matched your search

+1 -1
View File
@@ -307,7 +307,7 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
///- Before we process anything:
/// If necessary, kick the player from the character select screen
if (IsConnectionIdle())
if (IsConnectionIdle() && !HasPermission(rbac::RBAC_PERM_IGNORE_IDLE_CONNECTION))
m_Socket->CloseSocket();
///- Retrieve packets from the receive queue and call the appropriate handlers