summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-14 13:17:33 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-14 13:17:33 -0300
commit35e06f714cb4f9abce4950ec4d28d0c168fcc738 (patch)
tree8c93797cf5ac91411ae716ba000a3fe8942f8fd8 /npc/functions
parent7a834902f29ab44e777de324f359bb8d33f7cb75 (diff)
downloadserverdata-35e06f714cb4f9abce4950ec4d28d0c168fcc738.tar.gz
serverdata-35e06f714cb4f9abce4950ec4d28d0c168fcc738.tar.bz2
serverdata-35e06f714cb4f9abce4950ec4d28d0c168fcc738.tar.xz
serverdata-35e06f714cb4f9abce4950ec4d28d0c168fcc738.zip
Admins are not devs/evtc/gms by default, remove this override even if it is redudant
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/permissions.txt19
1 files changed, 10 insertions, 9 deletions
diff --git a/npc/functions/permissions.txt b/npc/functions/permissions.txt
index 96e69fde..8af2cc29 100644
--- a/npc/functions/permissions.txt
+++ b/npc/functions/permissions.txt
@@ -7,29 +7,30 @@
// administrator
function script is_admin {
- return has_permission(PERM_USE_ALL_COMMANDS, getarg(0, getcharid(CHAR_ID_ACCOUNT)));
+ return has_permission(PERM_USE_ALL_COMMANDS,
+ getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}
// any staff member
function script is_trusted {
- return is_admin(getarg(0, getcharid(CHAR_ID_ACCOUNT))) ||
- has_permission("show_client_version", getarg(0, getcharid(CHAR_ID_ACCOUNT)));
+ return has_permission("show_client_version",
+ getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}
// developer
function script is_dev {
- return is_admin(getarg(0, getcharid(CHAR_ID_ACCOUNT))) ||
- has_permission(PERM_RECEIVE_REQUESTS, getarg(0, getcharid(CHAR_ID_ACCOUNT)));
+ return has_permission(PERM_RECEIVE_REQUESTS,
+ getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}
// event coordinator
function script is_evtc {
- return is_admin(getarg(0, getcharid(CHAR_ID_ACCOUNT))) ||
- can_use_command("@monster", getarg(0, getcharid(CHAR_ID_ACCOUNT)));
+ return can_use_command("@monster",
+ getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}
// game master
function script is_gm {
- return is_admin(getarg(0, getcharid(CHAR_ID_ACCOUNT))) ||
- can_use_command("@jail", getarg(0, getcharid(CHAR_ID_ACCOUNT)));
+ return can_use_command("@jail",
+ getarg(0, getcharid(CHAR_ID_ACCOUNT)));
}