1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 02:56:37 +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
+3 -4
View File
@@ -491,8 +491,6 @@ Conf::Conf() : Block("")
&service = fantasy.Get<const Anope::string>("command"),
&permission = fantasy.Get<const Anope::string>("permission"),
&group = fantasy.Get<const Anope::string>("group");
bool hide = fantasy.Get<bool>("hide"),
prepend_channel = fantasy.Get<bool>("prepend_channel", "yes");
ValidateNotEmpty("fantasy", "name", nname);
ValidateNotEmptyOrSpaces("fantasy", "command", service);
@@ -501,8 +499,9 @@ Conf::Conf() : Block("")
c.name = service;
c.permission = permission;
c.group = group;
c.hide = hide;
c.prepend_channel = prepend_channel;
c.hide = fantasy.Get<bool>("hide");
c.prepend_channel = fantasy.Get<bool>("prepend_channel", "yes");
c.require_privilege = fantasy.Get<bool>("require_privilege", "no");
}
for (int i = 0; i < this->CountBlock("command_group"); ++i)