criminal commented on a Page, Very Very simple vote script.  -  May 08, 2008

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

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.