1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:34:48 +02:00

Add an operator privilege to allow overriding drop codes.

Closes #392
This commit is contained in:
Sadie Powell
2024-04-05 14:06:24 +01:00
parent 00549bc9b2
commit 4603cd467b
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ public:
}
auto *code = dropcode.Get(ci);
if (params.size() < 2 || !code || !code->equals_ci(params[1]))
if (params.size() < 2 || ((!code || !code->equals_ci(params[1])) && (!source.HasPriv("chanserv/drop/override") || params[1] != "override")))
{
if (!code)
{