From 76224104f944c11b691917a3c096e0226b223998 Mon Sep 17 00:00:00 2001 From: James Upjohn Date: Sat, 20 Dec 2025 07:15:45 +1300 Subject: [PATCH] feat: classify lead mod badge as channel authority (#6665) --- CHANGELOG.md | 1 + src/messages/MessageElement.hpp | 1 + src/providers/twitch/TwitchBadge.cpp | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2beb4b51..cd4d66fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/messages/MessageElement.hpp b/src/messages/MessageElement.hpp index c63418f3..b027e8fd 100644 --- a/src/messages/MessageElement.hpp +++ b/src/messages/MessageElement.hpp @@ -72,6 +72,7 @@ enum class MessageElementFlag : int64_t { // Slot 3: Twitch // - VIP badge // - Moderator badge + // - Lead Moderator badge // - Broadcaster badge BadgeChannelAuthority = (1LL << 15), diff --git a/src/providers/twitch/TwitchBadge.cpp b/src/providers/twitch/TwitchBadge.cpp index 0a879992..1e2302e5 100644 --- a/src/providers/twitch/TwitchBadge.cpp +++ b/src/providers/twitch/TwitchBadge.cpp @@ -8,7 +8,8 @@ namespace chatterino { // vanity flag is left out on purpose as it is our default flag const QSet globalAuthority{"staff", "admin", "global_mod"}; const QSet predictions{"predictions"}; -const QSet channelAuthority{"moderator", "vip", "broadcaster"}; +const QSet channelAuthority{"lead_moderator", "moderator", "vip", + "broadcaster"}; const QSet subBadges{"subscriber", "founder"}; Badge::Badge(QString key, QString value)