Files
VOREStation/code/modules/admin/verbs/deadsay.dm
T
Kashargul 89fb9871e0 next set of admin verbs (#19260)
* next set of admin verbs

* invoke

* .

* a few more

* few more

* .

* few more

* some more

* move thos

* next

* some debug verbs

* axe the old mod loading

* del

* is local for some verbs

* few more

* .

* .

* .

* Add local narrate.

* Fixes this

Needed to be user.mob, since user is  the client and usr was the old user.mob

* fixes

* .

* .

* .

* .

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
2026-03-21 17:16:41 -04:00

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!