mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-06 14:19:43 +00:00
* upports server maint subsystem * fix runtime in admin z narrate * . * sorts them verbs * . * . * Update code/controllers/subsystems/statpanel.dm Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> * Update code/controllers/subsystems/server_maint.dm Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
29 lines
950 B
Plaintext
29 lines
950 B
Plaintext
/client/proc/dsay(msg as text)
|
|
set category = "Admin.Chat"
|
|
set name = "Dsay" //Gave this shit a shorter name so you only have to time out "dsay" rather than "dead say" to use it --NeoFite
|
|
set hidden = 1
|
|
if(!src.holder)
|
|
to_chat(src, "Only administrators may use this command.")
|
|
return
|
|
if(!src.mob)
|
|
return
|
|
if(prefs.muted & MUTE_DEADCHAT)
|
|
to_chat(src, span_warning("You cannot send DSAY messages (muted)."))
|
|
return
|
|
|
|
if(!prefs?.read_preference(/datum/preference/toggle/show_dsay))
|
|
to_chat(src, span_warning("You have deadchat muted."))
|
|
return
|
|
|
|
var/stafftype = uppertext(holder.rank)
|
|
|
|
msg = sanitize(msg)
|
|
log_admin("DSAY: [key_name(src)] : [msg]")
|
|
|
|
if (!msg)
|
|
return
|
|
|
|
say_dead_direct(span_name("[stafftype]([src.holder.fakekey ? src.holder.fakekey : src.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!
|