on *:text:!vote *:#:{
if ($nick isop $chan) || ($nick ishop $chan) || ($nick == Kiddo462) {
set %question $2-
set %vote on
msg $chan [Voting Poll]- $qt(%question) -[Type " !yes " or " !no " ]
/timer 1 115 /set %vote off
/timer 1 115 /msg $chan Voting has finshed waiting for results.
/timer 1 120 /msg $chan The results for $qt(%question) are YES( $+ %yes $+ ) & NO( $+ %no $+ ) .
}
else
unset %yes
unset %no
}
on *:text:!yes:#:{
if (%vote == off) { halt }
inc %yes 1
notice $nick Your vote for yes has been included.
}
on *:text:!no:#:{
if (%vote == off) { halt }
inc %no 1
notice $nick Your vote for no has been included.
}
on *:text:!end vote:#:{
if (%vote == off) { halt }
set %vote off
msg $chan The results for $qt(%question) are YES( $+ %yes $+ ) & NO ( $+ %no $+ ) .
unset %no
unset %yes
unset %question
}