diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-06-27 15:06:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-06-27 15:06:22 -0300 |
commit | a43a3c01d746d07b2144fcc1b4ceb7ce2860bc81 (patch) | |
tree | b22dae93bf99b03cd908982bf6e28fe5aac61ee7 /npc/annuals | |
parent | 59f2b8b864f69acb67df24724e843b2eec6fb6ab (diff) | |
download | serverdata-a43a3c01d746d07b2144fcc1b4ceb7ce2860bc81.tar.gz serverdata-a43a3c01d746d07b2144fcc1b4ceb7ce2860bc81.tar.bz2 serverdata-a43a3c01d746d07b2144fcc1b4ceb7ce2860bc81.tar.xz serverdata-a43a3c01d746d07b2144fcc1b4ceb7ce2860bc81.zip |
ALL THE LOGS - Send some sensitive CrazyTree operations to GM Log.
Diffstat (limited to 'npc/annuals')
-rw-r--r-- | npc/annuals/tree_beard.txt | 12 |
1 files changed, 12 insertions, 0 deletions
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))); } |