mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-31 12:41:46 +00:00
* dev team chat initial * oops * refactor who code * allow discord relay * yeet some un-needed stuff * tweak the role colour * Update code/__DEFINES/admin_defines.dm Co-authored-by: ROdenFL <ROdenFL@yandex.ru> Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> * .Add to += * Update config/example/config.toml Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> --------- Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> Co-authored-by: ROdenFL <ROdenFL@yandex.ru> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
/client/proc/dsay(msg as text)
|
|
set category = "Admin"
|
|
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(!check_rights(R_ADMIN|R_MOD))
|
|
return
|
|
|
|
if(!src.mob)
|
|
return
|
|
|
|
if(check_mute(ckey, MUTE_DEADCHAT))
|
|
to_chat(src, "<span class='warning'>You cannot send DSAY messages (muted).</span>")
|
|
return
|
|
|
|
if(!(prefs.toggles & PREFTOGGLE_CHAT_DEAD))
|
|
to_chat(src, "<span class='warning'>You have deadchat muted.</span>")
|
|
return
|
|
|
|
if(handle_spam_prevention(msg,MUTE_DEADCHAT))
|
|
return
|
|
|
|
var/stafftype = null
|
|
|
|
if(check_rights(R_MENTOR, 0))
|
|
stafftype = "MENTOR"
|
|
|
|
if(check_rights(R_DEV_TEAM, 0))
|
|
stafftype = "DEVELOPER"
|
|
|
|
if(check_rights(R_MOD, 0))
|
|
stafftype = "MOD"
|
|
|
|
if(check_rights(R_ADMIN, 0))
|
|
stafftype = "ADMIN"
|
|
|
|
msg = emoji_parse(sanitize(copytext_char(msg, 1, MAX_MESSAGE_LEN)))
|
|
log_admin("[key_name(src)] : [msg]")
|
|
|
|
if(!msg)
|
|
return
|
|
|
|
var/prefix = "[stafftype] ([src.key])"
|
|
if(holder.fakekey)
|
|
prefix = "Administrator"
|
|
say_dead_direct("<span class='name'>[prefix]</span> says, <span class='message'>\"[msg]\"</span>")
|
|
|
|
SSblackbox.record_feedback("tally", "admin_verb", 1, "Dsay") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/get_dead_say()
|
|
if(!check_rights(R_ADMIN))
|
|
return
|
|
var/msg = input(src, null, "dsay \"text\"") as text | null
|
|
dsay(msg)
|