mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Also match account bans against grouped nicknames.
This commit is contained in:
parent
e9018ab055
commit
4ad5257918
@ -141,7 +141,17 @@ public:
|
||||
|
||||
bool IsMatch(User* user, Channel* channel, const std::string& text) override
|
||||
{
|
||||
const std::string* account = accountapi.GetAccountName(user);
|
||||
const auto* nicks = accountapi.GetAccountNicks(user);
|
||||
if (nicks)
|
||||
{
|
||||
for (const auto& nick : *nicks)
|
||||
{
|
||||
if (InspIRCd::Match(nick, text))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
const auto* account = accountapi.GetAccountName(user);
|
||||
return account && InspIRCd::Match(*account, text);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user