mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-25 01:31:58 +00:00
40 lines
885 B
Plaintext
40 lines
885 B
Plaintext
/mob/dead/observer/say(var/message)
|
|
message = sanitize(copytext(message, 1, MAX_MESSAGE_LEN))
|
|
|
|
if(!message)
|
|
return
|
|
|
|
log_say("Ghost/[src.key] : [message]")
|
|
|
|
if(src.client)
|
|
if(src.client.prefs.muted & MUTE_DEADCHAT)
|
|
to_chat(src, "\red You cannot talk in deadchat (muted).")
|
|
return
|
|
|
|
if(src.client.handle_spam_prevention(message,MUTE_DEADCHAT))
|
|
return
|
|
|
|
. = src.say_dead(message)
|
|
|
|
|
|
/mob/dead/observer/emote(var/act, var/type, var/message)
|
|
message = sanitize(copytext(message, 1, MAX_MESSAGE_LEN))
|
|
|
|
if(!message)
|
|
return
|
|
|
|
if(act != "me")
|
|
return
|
|
|
|
log_emote("Ghost/[src.key] : [message]")
|
|
|
|
if(src.client)
|
|
if(src.client.prefs.muted & MUTE_DEADCHAT)
|
|
to_chat(src, "\red You cannot emote in deadchat (muted).")
|
|
return
|
|
|
|
if(src.client.handle_spam_prevention(message, MUTE_DEADCHAT))
|
|
return
|
|
|
|
. = src.emote_dead(message)
|