mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 07:22:15 +00:00
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2181 316c924e-a436-60f5-8080-3fe189b3f50e
22 lines
624 B
Plaintext
22 lines
624 B
Plaintext
/mob/verb/pray(msg as text)
|
|
set category = "IC"
|
|
set name = "Pray"
|
|
if(!usr.client.authenticated)
|
|
src << "Please authorize before sending these messages."
|
|
return
|
|
|
|
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
|
|
|
if (!msg)
|
|
return
|
|
|
|
if (usr.muted)
|
|
return
|
|
|
|
for (var/mob/M in world)
|
|
if (M.client && M.client.holder && M.client.seeprayers)
|
|
M << "\blue <b><font color=purple>PRAY: </font>[key_name(src, M)](<A HREF='?src=\ref[M.client.holder];adminplayeropts=\ref[src]'>X</A>):</b> [msg]"
|
|
|
|
usr << "Your prayers have been received by the gods."
|
|
//log_admin("HELP: [key_name(src)]: [msg]")
|