mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
OOC sanitize like Flavor sanitize
I was sick of OOC flavortext not creating links, not allowing linebreaks, etc. So I made it do those things. Now it's the same as normal flavortext instead of a "completely unformatted hellscape of trying to read".
This commit is contained in:
@@ -122,7 +122,7 @@ datum/preferences/proc/set_biological_gender(var/gender)
|
||||
return TOPIC_REFRESH
|
||||
|
||||
else if(href_list["metadata"])
|
||||
var/new_metadata = sanitize(input(user, "Enter any information you'd like others to see, such as Roleplay-preferences:", "Game Preference" , pref.metadata) as message|null) as message|null
|
||||
var/new_metadata = sanitize(input(user, "Enter any information you'd like others to see, such as Roleplay-preferences:", "Game Preference" , html_decode(pref.metadata)) as message, extra = 0) //VOREStation Edit
|
||||
if(new_metadata && CanUseTopic(user))
|
||||
pref.metadata = new_metadata
|
||||
return TOPIC_REFRESH
|
||||
|
||||
Reference in New Issue
Block a user