Merge pull request #11985 from Tayyyyyyy/admin_pencode

Add admin pencode: style, class, and img
This commit is contained in:
Fox McCloud
2019-08-14 22:22:34 -04:00
committed by GitHub
5 changed files with 44 additions and 4 deletions
+1 -1
View File
@@ -644,7 +644,7 @@ var/list/admin_verbs_ticket = list(
if(!message)
return
for(var/mob/V in hearers(O))
V.show_message(message, 2)
V.show_message(admin_pencode_to_html(message), 2)
log_admin("[key_name(usr)] made [O] at [O.x], [O.y], [O.z] make a sound")
message_admins("<span class='notice'>[key_name_admin(usr)] made [O] at [O.x], [O.y], [O.z] make a sound</span>")
feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+1 -1
View File
@@ -2186,7 +2186,7 @@
if(!input)
qdel(P)
return
input = P.parsepencode(input) // Encode everything from pencode to html
input = admin_pencode_to_html(html_encode(input)) // Encode everything from pencode to html
var/customname = clean_input("Pick a title for the fax.", "Fax Title", , owner)
if(!customname)
+1 -1
View File
@@ -110,7 +110,7 @@
if(!msg)
return
else
msg = pencode_to_html(msg)
msg = admin_pencode_to_html(msg)
var/recieve_span = "playerreply"
var/send_pm_type = " "
+4 -1
View File
@@ -58,6 +58,9 @@
if(!msg)
return
msg = admin_pencode_to_html(msg)
if(usr)
if(usr.client)
if(usr.client.holder)
@@ -136,7 +139,7 @@
if( !msg )
return
msg = pencode_to_html(msg)
msg = admin_pencode_to_html(msg)
to_chat(M, msg)
log_admin("DirectNarrate: [key_name(usr)] to ([key_name(M)]): [msg]")