/tg/ input stripping.

Borrows /tg/ html stripping code.
Ghosts are the first to be given this boon, they now have to deliberately emote things like "Spooky man and it#36&;s friends type crap".
This commit is contained in:
PsiOmega
2014-11-21 18:19:04 +01:00
parent 843aa3c126
commit 7182ff9c3f
9 changed files with 35 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/mob/dead/observer/say(var/message)
message = sanitize(copytext(message, 1, MAX_MESSAGE_LEN))
message = strip_html_properly(message)
if (!message)
return
@@ -18,7 +18,7 @@
/mob/dead/observer/emote(var/act, var/type, var/message)
message = sanitize(copytext(message, 1, MAX_MESSAGE_LEN))
message = trim_strip_html_properly(message)
if(!message)
return