mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-13 10:23:15 +00:00
30 lines
829 B
Plaintext
30 lines
829 B
Plaintext
/mob/dead/observer/say(message)
|
|
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN))
|
|
|
|
if (!message)
|
|
return
|
|
|
|
log_say("Ghost/[src.key] : [message]")
|
|
|
|
if (src.client)
|
|
if(src.client.prefs.muted & MUTE_DEADCHAT)
|
|
src << "<span class='danger'>You cannot talk in deadchat (muted).</span>"
|
|
return
|
|
|
|
if (src.client.handle_spam_prevention(message,MUTE_DEADCHAT))
|
|
return
|
|
|
|
. = src.say_dead(message)
|
|
|
|
/mob/dead/observer/Hear(message, atom/movable/speaker, message_langs, raw_message, radio_freq, list/spans)
|
|
if(radio_freq)
|
|
var/atom/movable/virtualspeaker/V = speaker
|
|
|
|
if(istype(V.source, /mob/living/silicon/ai))
|
|
var/mob/living/silicon/ai/S = V.source
|
|
speaker = S.eyeobj
|
|
else
|
|
speaker = V.source
|
|
src << "<a href=?src=\ref[src];follow=\ref[speaker]>(F)</a> [message]"
|
|
|