feat: classify lead mod badge as channel authority (#6665)

This commit is contained in:
James Upjohn
2025-12-20 07:15:45 +13:00
committed by GitHub
parent eb373d0455
commit 76224104f9
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@
- Minor: Added broadcaster-only `/prediction`, `/cancelprediction`, `/lockprediction`, and `/completeprediction` commands. (#6583, #6612, #6632)
- Minor: Added support for BetterTTV Pro subscriber badges. (#6625)
- Bugfix: Moderation checks now include the lead moderator badge. (#6642)
- Bugfix: Fixed lead moderator badges not being filtered by the `Channel` badge setting. (#6665)
- Bugfix: Expose the "Extra extension IDs" setting on non-Windows systems too. (#6509)
- Bugfix: Fixed some commands and filters not working as expected in seach popups. (#6539)
- Bugfix: Fixed settings occasionally not opening when clicking on "Manage Accounts" in the account switcher. (#6543)
+1
View File
@@ -72,6 +72,7 @@ enum class MessageElementFlag : int64_t {
// Slot 3: Twitch
// - VIP badge
// - Moderator badge
// - Lead Moderator badge
// - Broadcaster badge
BadgeChannelAuthority = (1LL << 15),
+2 -1
View File
@@ -8,7 +8,8 @@ namespace chatterino {
// vanity flag is left out on purpose as it is our default flag
const QSet<QString> globalAuthority{"staff", "admin", "global_mod"};
const QSet<QString> predictions{"predictions"};
const QSet<QString> channelAuthority{"moderator", "vip", "broadcaster"};
const QSet<QString> channelAuthority{"lead_moderator", "moderator", "vip",
"broadcaster"};
const QSet<QString> subBadges{"subscriber", "founder"};
Badge::Badge(QString key, QString value)