mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
/proc/log_nsay(text, inside, mob/speaker)
|
|
if (config.log_say)
|
|
WRITE_LOG(diary, "NSAY (NIF:[inside]): [speaker.simple_info_line()]: [html_decode(text)]")
|
|
//CHOMPEdit Begin
|
|
if(speaker.client)
|
|
if(!SSdbcore.IsConnected())
|
|
establish_db_connection()
|
|
if(!SSdbcore.IsConnected())
|
|
return null
|
|
var/DBQuery/query_insert = SSdbcore.NewQuery("INSERT INTO erro_dialog (mid, time, ckey, mob, type, message) VALUES (null, Now(), '[speaker.ckey]', '[speaker.real_name]', 'nsay', '[html_decode(text)]')")
|
|
query_insert.ErrorMsg()
|
|
//CHOMPEdit End
|
|
|
|
/proc/log_nme(text, inside, mob/speaker)
|
|
if (config.log_emote)
|
|
WRITE_LOG(diary, "NME (NIF:[inside]): [speaker.simple_info_line()]: [html_decode(text)]")
|
|
//CHOMPEdit Begin
|
|
if(speaker.client)
|
|
if(!SSdbcore.IsConnected())
|
|
establish_db_connection()
|
|
if(!SSdbcore.IsConnected())
|
|
return null
|
|
var/DBQuery/query_insert = SSdbcore.NewQuery("INSERT INTO erro_dialog (mid, time, ckey, mob, type, message) VALUES (null, Now(), '[speaker.ckey]', '[speaker.real_name]', 'nme', '[html_decode(text)]')")
|
|
query_insert.Execute()
|
|
//CHOMPEdit End
|
|
|
|
/proc/log_subtle(text, mob/speaker)
|
|
if (config.log_emote)
|
|
WRITE_LOG(diary, "SUBTLE: [speaker.simple_info_line()]: [html_decode(text)]")
|
|
//CHOMPEdit Begin
|
|
if(speaker.client)
|
|
if(!SSdbcore.IsConnected())
|
|
establish_db_connection()
|
|
if(!SSdbcore.IsConnected())
|
|
return null
|
|
var/DBQuery/query_insert = SSdbcore.NewQuery("INSERT INTO erro_dialog (mid, time, ckey, mob, type, message) VALUES (null, Now(), '[speaker.ckey]', '[speaker.real_name]', 'subtle', '[html_decode(text)]')")
|
|
query_insert.Execute()
|
|
//CHOMPEdit End
|