1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 05:06:38 +02:00

Allow configuring fantasy commands to not require the FANTASY priv.

This commit is contained in:
Sadie Powell
2025-06-10 16:05:11 +01:00
parent 5702fb9145
commit 16aff210fd
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ public:
source.permission = info.permission;
AccessGroup ag = c->ci->AccessFor(u);
bool has_fantasy = ag.HasPriv("FANTASY") || source.HasPriv("botserv/fantasy");
bool has_fantasy = !info.require_privilege || ag.HasPriv("FANTASY") || source.HasPriv("botserv/fantasy");
EventReturn MOD_RESULT;
if (has_fantasy)