summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-06-01 14:34:13 -0300
committerJesusaves <cpntb1@ymail.com>2024-06-01 14:34:13 -0300
commitc0f0ce386045ae952f8b75c345d2590c067278c0 (patch)
treeb28366e187b0b27f6f2ca398deea7e10751c467b /npc/commands
parentdbbb00b0b2743ca819b7662140473c5dc92a3e6c (diff)
downloadserverdata-c0f0ce386045ae952f8b75c345d2590c067278c0.tar.gz
serverdata-c0f0ce386045ae952f8b75c345d2590c067278c0.tar.bz2
serverdata-c0f0ce386045ae952f8b75c345d2590c067278c0.tar.xz
serverdata-c0f0ce386045ae952f8b75c345d2590c067278c0.zip
Improve @gm command security on forks
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/super-menu.txt25
1 files changed, 12 insertions, 13 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt
index 7ae8c206e..59598681b 100644
--- a/npc/commands/super-menu.txt
+++ b/npc/commands/super-menu.txt
@@ -82,35 +82,34 @@ OnGM:
}
.@auth=true;
// NOTE: Pihro and Pyndragon do not have player chars
- // FIXME: Use account ID over char name (multi-server stable)
// Administration
- if (strcharinfo(0) == "Jesusalva") { // 0005
+ if (check_nickid("Jesusalva", "0005")) {
setgroupid(99);
- } else if (strcharinfo(0) == "Saulc") { // 0004
+ } else if (check_nickid("Saulc", "0004")) {
setgroupid(99);
// Game Masters
- } else if (strcharinfo(0) == "ThinkSome") { // 0817
+ } else if (check_nickid("ThinkSome", "0817")) {
setgroupid(80);
- } else if (strcharinfo(0) == "demure") { // 0777
+ } else if (check_nickid("demure", "0777")) {
setgroupid(80);
- } else if (strcharinfo(0) == "jak1") { // 0002
+ } else if (check_nickid("jak1", "0002")) {
setgroupid(80);
// Game Officers
- } else if (strcharinfo(0) == "seeds") { // 0409
+ } else if (check_nickid("seeds", "0409")) {
setgroupid(60);
- } else if (strcharinfo(0) == "kytty") { // 0606
+ } else if (check_nickid("kytty", "0606")) {
setgroupid(60);
- } else if (strcharinfo(0) == "cuoco") { // 0620
+ } else if (check_nickid("cuoco", "0620")) {
setgroupid(60);
// Support Staff
- } else if (strcharinfo(0) == "Ledmitz") { // 0585
+ } else if (check_nickid("Ledmitz", "0585")) {
setgroupid((debug ? 5 : 2));
- } else if (strcharinfo(0) == "Meway") { // 1078
+ } else if (check_nickid("Meway", "1078")) {
setgroupid((debug ? 5 : 2));
- } else if (strcharinfo(0) == "HoraK") { // 0008
+ } else if (check_nickid("HoraK", "0008")) {
setgroupid((debug ? 5 : 2));
- } else if (strcharinfo(0) == "Reid") { // 0741
+ } else if (check_nickid("Reid", "0741")) {
setgroupid((debug ? 5 : 2));
// Test Server grants
} else if (debug && getgroupid() == 1) {