Fixes voting question for being too sanitized. (#6916)

This commit is contained in:
Karolis
2019-08-27 18:06:04 +03:00
committed by Erki
parent 70af791f16
commit a365c5e30c
2 changed files with 6 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ var/datum/controller/subsystem/vote/SSvote
AddChoice(antag.role_text)
AddChoice("None")
if("custom")
question = sanitizeSafe(input(usr,"What is the vote for?") as text|null)
question = input(usr,"What is the vote for?") as text|null
if(!question) return 0
for(var/i=1,i<=10,i++)
var/option = capitalize(sanitize(input(usr,"Please enter an option or hit cancel to finish") as text|null))
@@ -283,7 +283,7 @@ var/datum/controller/subsystem/vote/SSvote
started_time = world.time
var/text = "[capitalize(mode)] vote started by [initiator]."
if(mode == "custom")
text += "\n[question]"
text += "\n[sanitizeSafe(question)]"
log_vote(text)
to_world("<font color='purple'><b>[text]</b>\nType <b>vote</b> or click <a href='?src=\ref[src];open=1'>here</a> to place your votes.\nYou have [config.vote_period/10] seconds to vote.</font>")