mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix unsetting bans that look like extbans but aren't.
This commit is contained in:
parent
8a52f5ece8
commit
7c31e3697b
@ -104,7 +104,7 @@ ExtBan::Comparison ExtBanManager::CompareEntry(const ListModeBase* lm, const std
|
|||||||
auto entry_extban = entry_result ? Find(entry_xbname) : nullptr;
|
auto entry_extban = entry_result ? Find(entry_xbname) : nullptr;
|
||||||
auto value_extban = value_result ? Find(value_xbname) : nullptr;
|
auto value_extban = value_result ? Find(value_xbname) : nullptr;
|
||||||
if (!entry_extban || !value_extban)
|
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 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)
|
if (entry_inverted != value_inverted || entry_extban != value_extban)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user