Fix admins reciving chelps when deadmined (#3938)
* catch null case * ensure safe execution order
This commit is contained in:
parent
01e7d446ec
commit
ba27370eef
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue