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:
+4
-1
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user