At the
if (%vote. [ $+ [ $chan ] ]) { notice $nick Vote is already running: $+ $readini(db2.ini,$chan,vote) $+ }
you already find if the vote is already running on the channel, add \" | Halt \".
if you\'ve done that, the:
&& (!%vote. [ $+ [ $chan ] ])
isnt needed anymore.
and instead of all making %no, %yes, %time, ...
Make it it\'ll all contain this: %vote.no, %vote.yes, %vote.time,...
Using \" unsetall \" will result in much problems, so you can use \" unset %vote.* \"
It\'s ok for the rest, however it could be simplified alot. 7/10