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