Fix admins reciving chelps when deadmined (#3938)

* catch null case

* ensure safe execution order
This commit is contained in:
SolStar 2025-06-11 16:15:15 -04:00 committed by GitHub
parent 01e7d446ec
commit ba27370eef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ public sealed partial class CwoinkSystem : SharedCwoinkSystem
private void OnAdminPermsChanged(AdminPermsChangedEventArgs args)
{
if ((args.Flags & AdminFlags.CuratorHelp) != 0)
if (((args.Flags ?? 0) & AdminFlags.CuratorHelp) != 0)
_activeCurators.Add(args.Player.Channel);
else
{