mirror of
https://github.com/anope/anope.git
synced 2026-07-03 22:03:14 +02:00
Fix some uses of Entry that didn't have their arguments swapped.
This commit is contained in:
@@ -70,7 +70,7 @@ public:
|
||||
// We have to check for bans.
|
||||
for (const auto &entry : c->GetModeList("BAN"))
|
||||
{
|
||||
Entry ban("BAN", entry);
|
||||
Entry ban(entry, "BAN");
|
||||
if (ban.Matches(user))
|
||||
c->RemoveMode(NULL, "BAN", ban.GetMask());
|
||||
}
|
||||
@@ -205,7 +205,7 @@ public:
|
||||
{
|
||||
BotInfo *bi = c->ci->bi;
|
||||
|
||||
Entry ban("BAN", data.value);
|
||||
Entry ban(data.value, "BAN");
|
||||
if (ban.Matches(bi))
|
||||
c->RemoveMode(bi, "BAN", data.value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user