diff options
| author | 2025-01-24 11:03:00 +0000 | |
|---|---|---|
| committer | 2025-01-24 11:03:00 +0000 | |
| commit | 7c31e3697b3cf4cc464cc63af57bd4aafd33d921 (patch) | |
| tree | dabe337aa60c6b054fa2523e9052ff720f6c04d1 | |
| parent | Also build isupport for removed but still in use connect classes. (diff) | |
Fix unsetting bans that look like extbans but aren't.
| -rw-r--r-- | src/coremods/core_channel/extban.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
