mirror of
https://github.com/anope/anope.git
synced 2026-06-30 18:46:38 +02:00
Swap the mode and mask params to Entry and make the mode optional.
This commit is contained in:
@@ -788,7 +788,7 @@ namespace InspIRCdExtBan
|
||||
|
||||
bool Matches(User *u, const Entry *e) override
|
||||
{
|
||||
return Entry(this->name, e->GetMask(), false).Matches(u);
|
||||
return Entry(e->GetMask(), this->name, false).Matches(u);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -898,7 +898,7 @@ namespace InspIRCdExtBan
|
||||
|
||||
bool Matches(User *u, const Entry *e) override
|
||||
{
|
||||
return !u->Account() && Entry(this->base, e->GetMask(), false).Matches(u);
|
||||
return !u->Account() && Entry(e->GetMask(), this->base, false).Matches(u);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user