mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix matching acting extbans when multiple extbans are set.
This commit is contained in:
parent
ffb60af7f0
commit
f07eedcb23
@ -154,7 +154,10 @@ ModResult ExtBanManager::GetStatus(ExtBan::ActingBase* extban, User* user, Chann
|
||||
continue;
|
||||
}
|
||||
|
||||
return extban->IsMatch(user, channel, xbvalue) != inverted ? MOD_RES_DENY : MOD_RES_PASSTHRU;
|
||||
// For a non-inverted (regular) extban we want to match but for an
|
||||
// inverted extban we want to not match.
|
||||
if (extban->IsMatch(user, channel, xbvalue) != inverted)
|
||||
return MOD_RES_DENY;
|
||||
}
|
||||
return MOD_RES_PASSTHRU;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user