mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-15 19:46:38 +00:00
* demos (ported from yogstation) rustg update + write with no format use external hook for logging use proper log vars fix + clarifying comment don't start the log release build of rust-g fix something caught by the lint Update code/__DEFINES/subsystems.dm Co-Authored-By: Jordan Brown <Cyberboss@users.noreply.github.com> Update code/controllers/subsystem/demo.dm Co-Authored-By: JJRcop <jrubcop@gmail.com> Update code/controllers/subsystem/demo.dm Co-Authored-By: JJRcop <jrubcop@gmail.com> moves hooks out of a dedicated file len = 0 to Cut(), remove semicolons untyped loop * updated rust_g * 513 updates
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
/client/proc/cmd_admin_say(msg as text)
|
|
set category = "Admin"
|
|
set name = "Asay" //Gave this shit a shorter name so you only have to time out "asay" rather than "admin say" to use it --NeoFite
|
|
set hidden = 1
|
|
if(!check_rights(0))
|
|
return
|
|
|
|
msg = emoji_parse(copytext_char(sanitize(msg), 1, MAX_MESSAGE_LEN))
|
|
if(!msg)
|
|
return
|
|
|
|
mob.log_talk(msg, LOG_ASAY)
|
|
msg = keywords_lookup(msg)
|
|
var/custom_asay_color = (CONFIG_GET(flag/allow_admin_asaycolor) && prefs.asaycolor) ? "<font color=[prefs.asaycolor]>" : "<font color='#FF4500'>"
|
|
msg = "<span class='adminsay'><span class='prefix'>ADMIN:</span> <EM>[key_name(usr, 1)]</EM> [ADMIN_FLW(mob)]: [custom_asay_color]<span class='message linkify'>[msg]</span></span>[custom_asay_color ? "</font>":null]"
|
|
to_chat(GLOB.admins, msg, confidential = TRUE)
|
|
|
|
SSblackbox.record_feedback("tally", "admin_verb", 1, "Asay") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/get_admin_say()
|
|
var/msg = input(src, null, "asay \"text\"") as text|null
|
|
cmd_admin_say(msg)
|