From 7c31e3697b3cf4cc464cc63af57bd4aafd33d921 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 24 Jan 2025 11:03:00 +0000 Subject: [PATCH] Fix unsetting bans that look like extbans but aren't. --- src/coremods/core_channel/extban.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coremods/core_channel/extban.cpp b/src/coremods/core_channel/extban.cpp index f3bf9bb4b..721636eee 100644 --- a/src/coremods/core_channel/extban.cpp +++ b/src/coremods/core_channel/extban.cpp @@ -104,7 +104,7 @@ ExtBan::Comparison ExtBanManager::CompareEntry(const ListModeBase* lm, const std auto entry_extban = entry_result ? Find(entry_xbname) : nullptr; auto value_extban = value_result ? Find(value_xbname) : nullptr; if (!entry_extban || !value_extban) - return ExtBan::Comparison::NOT_MATCH; + return entry_extban == value_extban ? ExtBan::Comparison::NOT_AN_EXTBAN : ExtBan::Comparison::NOT_MATCH; // If we've reached this point both are extbans so we can just do a simple comparison. if (entry_inverted != value_inverted || entry_extban != value_extban)