feat(Core/Account): Implement ACCOUNT_FLAG_NOKICK (#26238)

Co-authored-by: sudlud <sudlud@users.noreply.github.com>
This commit is contained in:
Kitzunu
2026-06-20 23:50:45 +02:00
committed by GitHub
parent 5197d9110d
commit 9e5addfef3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ void WorldSession::HandleLogoutRequestOpcode(WorldPackets::Character::LogoutRequ
bool preventAfkSanctuaryLogout = sWorld->getIntConfig(CONFIG_AFK_PREVENT_LOGOUT) == 1
&& GetPlayer()->isAFK() && sAreaTableStore.LookupEntry(GetPlayer()->GetAreaId())->IsSanctuary();
bool preventAfkLogout = sWorld->getIntConfig(CONFIG_AFK_PREVENT_LOGOUT) == 2
bool preventAfkLogout = ((sWorld->getIntConfig(CONFIG_AFK_PREVENT_LOGOUT) == 2) || HasAccountFlag(ACCOUNT_FLAG_NOKICK))
&& GetPlayer()->isAFK();
/// @todo: Possibly add RBAC permission to log out in combat