mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Allow narrate/globalnarrate shenanigans
Allows HTML if your entire thing is HTML
This commit is contained in:
@@ -106,7 +106,9 @@
|
|||||||
if (!holder)
|
if (!holder)
|
||||||
return
|
return
|
||||||
|
|
||||||
var/msg = sanitize(input("Message:", text("Enter the text you wish to appear to everyone:")) as text)
|
var/msg = input("Message:", text("Enter the text you wish to appear to everyone:")) as text
|
||||||
|
if(!(msg[1] == "<" && msg[length(msg)] == ">")) //You can use HTML but only if the whole thing is HTML. Tries to prevent admin 'accidents'.
|
||||||
|
msg = sanitize(msg)
|
||||||
|
|
||||||
if (!msg)
|
if (!msg)
|
||||||
return
|
return
|
||||||
@@ -128,7 +130,9 @@
|
|||||||
if(!M)
|
if(!M)
|
||||||
return
|
return
|
||||||
|
|
||||||
var/msg = sanitize(input("Message:", text("Enter the text you wish to appear to your target:")) as text)
|
var/msg = input("Message:", text("Enter the text you wish to appear to your target:")) as text
|
||||||
|
if(!(msg[1] == "<" && msg[length(msg)] == ">")) //You can use HTML but only if the whole thing is HTML. Tries to prevent admin 'accidents'.
|
||||||
|
msg = sanitize(msg)
|
||||||
|
|
||||||
if( !msg )
|
if( !msg )
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user