diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-27 19:40:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-27 19:40:37 -0300 |
commit | 458eebfbad3a07aa5fa0b0d48f4c0b9fdebe07a7 (patch) | |
tree | 1bf22d83aafb97fa6e561c1154d3c30cee4e81b1 | |
parent | d85f39571ec0db0f2d5d63b98baca50256f6d8b0 (diff) | |
download | serverdata-458eebfbad3a07aa5fa0b0d48f4c0b9fdebe07a7.tar.gz serverdata-458eebfbad3a07aa5fa0b0d48f4c0b9fdebe07a7.tar.bz2 serverdata-458eebfbad3a07aa5fa0b0d48f4c0b9fdebe07a7.tar.xz serverdata-458eebfbad3a07aa5fa0b0d48f4c0b9fdebe07a7.zip |
GM Authentication: Logs and public reports
Be the most annoying possible. Otherwise, it misses the point.
-rw-r--r-- | npc/commands/super-menu.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt index 11fa3988b..dac9111a4 100644 --- a/npc/commands/super-menu.txt +++ b/npc/commands/super-menu.txt @@ -70,6 +70,7 @@ OnGM: mesc "--- System Login ---"; if (!validatepin()) close; + .@auth=true; if (strcharinfo(0) == "Jesusalva") { atcommand("#adjgroup 99 Jesusalva"); } else if (strcharinfo(0) == "Saulc") { @@ -80,7 +81,13 @@ OnGM: atcommand("#adjgroup 80 demure"); } else { dispbottom l("Your privileges do not allow you to use this command."); + .@auth=false; } + // Handle authentication reports + if (.@auth) + announce strcharinfo(0)+" has just logged in services.", bc_all; + else + logmes strcharinfo(0)+" : GM Authentication failed.", LOGMES_ATCOMMAND; close; OnInit: |