Skip to content

Commit

Permalink
check ban flag for auto panic bunker (DeltaV-Station#2443)
Browse files Browse the repository at this point in the history
Co-authored-by: deltanedas <@deltanedas:kde.org>
  • Loading branch information
deltanedas authored Dec 14, 2024
1 parent 680fb5c commit c690177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Administration/Systems/AdminSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ private void UpdatePanicBunker()
var admins = PanicBunker.CountDeadminnedAdmins
? _adminManager.AllAdmins
: _adminManager.ActiveAdmins;
var hasAdmins = admins.Any();
var hasAdmins = admins.Any(p => _adminManager.HasAdminFlag(p, AdminFlags.Ban)); // DeltaV: Add predicate to require someone that can handle ahelps, not just curators

// TODO Fix order dependent Cvars
// Please for the sake of my sanity don't make cvars & order dependent.
Expand Down

0 comments on commit c690177

Please sign in to comment.