1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 00:16:37 +02:00

Swap the mode and mask params to Entry and make the mode optional.

This commit is contained in:
Sadie Powell
2026-01-26 18:57:29 +00:00
parent a0676ef8b1
commit 48bb6089fa
9 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -564,7 +564,7 @@ namespace UnrealExtBan
bool Matches(User *u, const Entry *e) override
{
return Entry(this->base, e->GetMask(), false).Matches(u);
return Entry(e->GetMask(), this->base, false).Matches(u);
}
};
@@ -646,7 +646,7 @@ namespace UnrealExtBan
/* strip down the time (~t:1234:) and call other matchers */
auto real_mask = e->GetMask();
real_mask = real_mask.substr(real_mask.find(":") + 1);
return Entry("BAN", real_mask, false).Matches(u);
return Entry(real_mask, "BAN", false).Matches(u);
}
};