Fixed custom votes

The old method of passing the voter as href was still used by custom votes, making Topic() believe anyone doing custom votes was cheating. Thank god there was no auto-ban.
This commit is contained in:
CIB
2012-08-03 05:43:39 +03:00
parent ece4b95e8f
commit a1d362b795
+2 -2
View File
@@ -218,7 +218,7 @@
if(src.client.vote == md)
text += "<LI><B>[disp]</B>"
else
text += "<LI><A href='?src=\ref[vote];voter=\ref[src];vote=[md]'>[disp]</A>"
text += "<LI><A href='?src=\ref[vote];vote=[md]'>[disp]</A>"
text += "[votes[md]>0?" - [votes[md]] vote\s":null]<BR>"
@@ -324,7 +324,7 @@
else
text += "Change mode votes are disabled while a round is in progress, vote to restart first.<BR>"
if(src.client.holder) //Strumpetplaya Add - Custom Votes for Admins
text += "<A href='?src=\ref[vote];voter=\ref[src];vmode=3'>Begin custom vote.</A><BR>"
text += "<A href='?src=\ref[vote];vmode=3'>Begin custom vote.</A><BR>"
text += footer
usr << browse(text, "window=vote")