#include "macros.dm" /client/proc/dsay(msg as text) set category = "Special Verbs" set name = "dsay" set hidden = 1 admin_only if (!src.mob) return if (src.ismuted()) boutput(src, "You are currently muted and cannot use deadsay.") return msg = copytext(sanitize(html_encode(msg)), 1, MAX_MESSAGE_LEN) logTheThing("admin", src, null, "DSAY: [msg]") logTheThing("diary", src, null, "DSAY: [msg]", "admin") if (!msg) return var/show_other_key = 0 if (src.stealth || src.alt_key) show_other_key = 1 var/rendered = "DEAD: ADMIN([show_other_key ? src.fakekey : src.key]) says, \"[msg]\"" var/adminrendered = "DEAD: [show_other_key ? "ADMIN([src.key] (as [src.fakekey])" : "ADMIN([src.key]"]) says, \"[msg]\"" for (var/mob/M in mobs) if(istype(M, /mob/new_player)) continue if(M.client && M.client.holder && !M.client.player_mode) var/thisR = adminrendered if (src.mob.mind) thisR = "[adminrendered]" boutput(M, thisR) else if(M.stat == 2) M.show_message(rendered, 2)