From a43a3c01d746d07b2144fcc1b4ceb7ce2860bc81 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 27 Jun 2021 15:06:22 -0300 Subject: ALL THE LOGS - Send some sensitive CrazyTree operations to GM Log. --- npc/annuals/tree_beard.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/npc/annuals/tree_beard.txt b/npc/annuals/tree_beard.txt index e0a4d1b2..ba135853 100644 --- a/npc/annuals/tree_beard.txt +++ b/npc/annuals/tree_beard.txt @@ -85,6 +85,7 @@ L_HalloweenLive: if (is_trusted() == false && #Tree_Trusted == false) { narrator(l("You see a tree.")); + // FIXME Inspector Quest if (getq(HurnscaldQuests_Inspector) == 2) { select( @@ -123,6 +124,8 @@ L_HalloweenLive: query_sql("TRUNCATE TABLE tree_quotes;"); mes(l("Database erased.")); + // GM Log + logmes(sprintf("%s has deleted all quotes from CrazyTree =(", strcharinfo(0)), LOGMES_ATCOMMAND); next(); } @@ -601,6 +604,7 @@ L_HalloweenLive: end; } + // FIXME: Maybe load all quotes to memory and only do a SQL lookup oninit query_sql(sprintf("SELECT t.id, c.name AS grabee, d.name AS grabber, t.timestamp, t.message " "FROM `tree_quotes` t " "JOIN `char` c ON t.char_id = c.char_id " @@ -830,6 +834,8 @@ OnTalkNearby: else if (debug && .@no_nick$ ~= "^.re(?:boot|load|start)(?:(?: the)? server)?$") { announce("The server is rebooting. This may take a couple minutes.", bc_all); + // GM Log + logmes(sprintf("%s has restarted the server with CrazyTree.", strcharinfo(0)), LOGMES_ATCOMMAND); sleep2(1000); atcommand("@serverexit 104"); } @@ -838,6 +844,8 @@ OnTalkNearby: else if (debug && .@no_nick$ ~= "^.re-?build(?:(?: the)? server)?$") { announce("The server is rebuilding. This will take several minutes.", bc_all); + // GM Log + logmes(sprintf("%s has restarted & rebuilt the server with CrazyTree.", strcharinfo(0)), LOGMES_ATCOMMAND); sleep2(1000); atcommand("@serverexit 108"); } @@ -877,6 +885,8 @@ OnTalkNearby: end; } set(getvariableofpc(#Tree_Trusted, .@chr), true); + // GM Log + logmes(sprintf("%s has granted access to \"%s\" on CrazyTree.", strcharinfo(0), strcharinfo(PC_NAME, .@chr)), LOGMES_ATCOMMAND); reply(sprintf("Success: Player `%s` can now use restricted commands.", strcharinfo(PC_NAME, .@chr))); } @@ -890,6 +900,8 @@ OnTalkNearby: end; } set(getvariableofpc(#Tree_Trusted, .@chr), false); + // GM Log + logmes(sprintf("%s has removed access from \"%s\" on CrazyTree.", strcharinfo(0), strcharinfo(PC_NAME, .@chr)), LOGMES_ATCOMMAND); reply(sprintf("Success: Player `%s` can no longer use restricted commands.", strcharinfo(PC_NAME, .@chr))); } -- cgit v1.2.3-60-g2f50