Skip to content

Commit

Permalink
Update votingbox.dm (tgstation#50193)
Browse files Browse the repository at this point in the history
  • Loading branch information
ExcessiveUseOfCobblestone authored Mar 24, 2020
1 parent 2be0f09 commit 1a40fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/structures/votingbox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
to_chat(user,"<span class='notice'>You cast your vote.</span>")

/obj/structure/votebox/proc/valid_vote(obj/item/paper/I)
if(length_char(text) > VOTE_TEXT_LIMIT || findtext(text,"<h1>Voting Results:</h1><hr><ol>"))
if(length_char(I.info) > VOTE_TEXT_LIMIT || findtext(I.info,"<h1>Voting Results:</h1><hr><ol>"))
return FALSE
return TRUE

Expand Down

0 comments on commit 1a40fbc

Please sign in to comment.