From c1cf7b0bcc217e7b6051b14ffc7f2ad2c99d1f08 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 13 May 2026 23:40:09 +0100 Subject: [PATCH] Fix checking if an access entry has a flag when migrating. Closes #574. --- modules/chanserv/cs_flags.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chanserv/cs_flags.cpp b/modules/chanserv/cs_flags.cpp index bfea8667f..b64e5051e 100644 --- a/modules/chanserv/cs_flags.cpp +++ b/modules/chanserv/cs_flags.cpp @@ -428,7 +428,7 @@ class CommandCSFlags final std::set newflags; for (auto &[priv, flag] : defaultFlags) { - if (access->HasPriv(priv)) + if (!access->HasPriv(priv)) continue; // Source doesn't have this flag. // Check that the source has access to set this entry.