1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Fix matching stacked extbans.

This commit is contained in:
Sadie Powell
2024-10-04 19:04:31 +01:00
parent 0ab0e4737c
commit 3da9b6df0d
3 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -216,9 +216,12 @@ template<typename T>
class CoreExport ChannelModeVirtual
: public T
{
Anope::string base;
private:
ChannelMode *basech;
protected:
Anope::string base;
public:
ChannelModeVirtual(const Anope::string &mname, const Anope::string &basename);
+1 -1
View File
@@ -871,7 +871,7 @@ namespace InspIRCdExtBan
bool Matches(User *u, const Entry *e) override
{
return !u->Account() && Entry("BAN", e->GetMask()).Matches(u);
return !u->Account() && Entry(this->base, e->GetMask()).Matches(u);
}
};
+1 -1
View File
@@ -555,7 +555,7 @@ namespace UnrealExtBan
bool Matches(User *u, const Entry *e) override
{
return Entry(this->name, e->GetMask()).Matches(u);
return Entry(this->base, e->GetMask()).Matches(u);
}
};