Merge pull request #12847 from Shadowlight213/dsaylogging

Reworks asay and dsay logging so they can be easily identified
This commit is contained in:
Razharas
2015-11-05 21:16:32 +03:00
4 changed files with 10 additions and 3 deletions
+5 -1
View File
@@ -19,6 +19,10 @@
if (config.log_admin)
diary << "\[[time_stamp()]]ADMIN: [text]"
/proc/log_dsay(text)
if (config.log_adminchat)
diary << "\[[time_stamp()]]DSAY: [text]"
/proc/log_game(text)
if (config.log_game)
diary << "\[[time_stamp()]]GAME: [text]"
@@ -61,7 +65,7 @@
/proc/log_adminsay(text)
if (config.log_adminchat)
diary << "\[[time_stamp()]]ADMINSAY: [text]"
diary << "\[[time_stamp()]]ASAY: [text]"
/proc/log_pda(text)
if (config.log_pda)
+1 -1
View File
@@ -7,7 +7,7 @@
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
if(!msg) return
log_admin("[key_name(src)] : [msg]")
log_adminsay("[key_name(src)] : [msg]")
msg = keywords_lookup(msg)
if(check_rights(R_ADMIN,0))
msg = "<span class='admin'><span class='prefix'>ADMIN:</span> <EM>[key_name(usr, 1)]</EM> (<a href='?_src_=holder;adminplayerobservefollow=\ref[mob]'>FLW</A>): <span class='message'>[msg]</span></span>"
+1 -1
View File
@@ -15,7 +15,7 @@
return
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
log_admin("[key_name(src)] : [msg]")
log_dsay("[key_name(src)] : [msg]")
if (!msg)
return
+3
View File
@@ -32,6 +32,9 @@ LOG_SAY
## log admin actions
LOG_ADMIN
## log admin chat
LOG_ADMINCHAT
## log client access (logon/logoff)
LOG_ACCESS