Soulcatcher chat logging, and subtle logging for free

Logs soulcatcher messages to the chat log so admins can review them, since that's kinda important, and gives subtle it's own logging format so you can tell it's a subtle and not just an emote. Also disables subtles while in the soulcatcher because apparently that was a thing.
This commit is contained in:
Arokha Sieyes
2017-06-10 14:55:36 -04:00
parent 4c3993df65
commit cd29b7de86
5 changed files with 63 additions and 20 deletions
@@ -26,7 +26,7 @@
return 1
var/nifmessage = sanitize(input("Type a message to say.","Speak into NIF") as text|null)
if(nifmessage)
SC.say_into(nifmessage,src.real_name)
SC.say_into(nifmessage,src)
return 1
if ("nme")
@@ -42,7 +42,7 @@
return 1
var/nifmessage = sanitize(input("Type an action to perform.","Emote into NIF") as text|null)
if(nifmessage)
SC.emote_into(nifmessage,src.real_name)
SC.emote_into(nifmessage,src)
return 1
if ("flip")
+1 -1
View File
@@ -41,7 +41,7 @@
return
if (message)
log_emote("[name]/[key] : [message]")
log_subtle("[name]/[key] : [message]")
var/list/vis = get_mobs_and_objs_in_view_fast(get_turf(src),1,2) //Turf, Range, and type 2 is emote
var/list/vis_mobs = vis["mobs"]