[MIRROR] Labels some things in player logging better. (#1713)

* Labels logging better. (#54997)

* Labels some things in player logging better.

Co-authored-by: uomo <51800976+uomo91@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-11-17 21:27:57 +00:00
committed by GitHub
co-authored by uomo
parent 747086dab2
commit 65b19156d9
2 changed files with 11 additions and 2 deletions
+11
View File
@@ -482,6 +482,17 @@
else
colored_message = "<font color='[color]'>[message]</font>"
//This makes readability a bit better for admins.
switch(message_type)
if(LOG_WHISPER)
colored_message = "(WHISPER) [colored_message]"
if(LOG_OOC)
colored_message = "(OOC) [colored_message]"
if(LOG_ASAY)
colored_message = "(ASAY) [colored_message]"
if(LOG_EMOTE)
colored_message = "(EMOTE) [colored_message]"
var/list/timestamped_message = list("\[[time_stamp()]\] [key_name(src)] [loc_name(src)]" = colored_message)
logging[smessage_type] += timestamped_message