mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-14 09:43:49 +01:00
62b8453b69
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
21 lines
755 B
Plaintext
21 lines
755 B
Plaintext
ADMIN_VERB(dsay, R_HOLDER, "Dsay", "Speak to the dead.", ADMIN_CATEGORY_CHAT, msg as text)
|
|
if(user.prefs.muted & MUTE_DEADCHAT)
|
|
to_chat(user, span_warning("You cannot send DSAY messages (muted)."))
|
|
return
|
|
|
|
if(!user.prefs?.read_preference(/datum/preference/toggle/show_dsay))
|
|
to_chat(user, span_warning("You have deadchat muted."))
|
|
return
|
|
|
|
var/stafftype = uppertext(user.holder.rank_names())
|
|
|
|
msg = sanitize(msg)
|
|
log_admin("DSAY: [key_name(user)] : [msg]")
|
|
|
|
if (!msg)
|
|
return
|
|
|
|
say_dead_direct(span_name("[stafftype]([user.holder.fakekey ? user.holder.fakekey : user.key])") + " says, " + span_message("\"[msg]\""))
|
|
|
|
feedback_add_details("admin_verb","D") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|