1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 03:23:13 +02:00

Make botserv fantasy override its own privilege

This commit is contained in:
Adam
2014-08-03 19:10:15 -04:00
parent 8210e82a5e
commit df6095fed2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -747,6 +747,7 @@ log
*
* Available privileges:
* botserv/administration - Can view and assign private BotServ bots
* botserv/fantasy - Can use fantasy commands without the FANTASIA privilege
* chanserv/administration - Can modify the settings of any channel (including changing of the owner!)
* chanserv/access/modify - Can modify channel access and akick lists, and use /chanserv enforce
* chanserv/auspex - Can see any information with /chanserv info
+1 -1
View File
@@ -163,7 +163,7 @@ class Fantasy : public Module
source.permission = info.permission;
AccessGroup ag = c->ci->AccessFor(u);
bool has_fantasia = ag.HasPriv("FANTASIA") || source.HasPriv("chanserv/administration");
bool has_fantasia = ag.HasPriv("FANTASIA") || source.HasPriv("botserv/fantasy");
EventReturn MOD_RESULT;
if (has_fantasia)