From 458eebfbad3a07aa5fa0b0d48f4c0b9fdebe07a7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 27 Jul 2020 19:40:37 -0300 Subject: GM Authentication: Logs and public reports Be the most annoying possible. Otherwise, it misses the point. --- npc/commands/super-menu.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc/commands') 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: -- cgit v1.2.3-60-g2f50