mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 05:51:56 +00:00
Fixes voting question for being too sanitized. (#6916)
This commit is contained in:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user