ID:266902
 
I was wondering if anyone could give me a short code on disabling users from typing(example): Xaax says: HIHI1...but allowed it so in the code itself so it'd work(example, but with no .)

mob/verb/say(m as text)
world << "<.font color=blue>[usr] says: [m]"

can anyone help?
Close. The text to be encoded is the argument for html_encode().

mob/verb/say(m as text)
world << "<font color=blue>[usr] says: [html_encode(m)]</font>"
mob
verb
say(msg as text)
world << "<.font color=blue>[usr] says: [html_encode()][msg]"



loading Game.dme
Game.dme:15:error:html_encode :expected 1 argument (found 0).

Game.dmb - 1 error, 0 warnings (double-click on an error to jump to it)
In response to ACWraith
thanks everyone ^^