on *:text:!poll *:#:{ /msg $chan $nick just started a poll lasting $2 seconds. the poll's subject is $3- /set %poll on /timer.poll 1 $2 /unset %poll | /msg $chan the results were: %votes_of_yes yes votes and %votes_of_no no votes | /unset %votes_of_yes | /unset %votes_of_no } on *:text:yes:#:{ if (%poll == on) { /inc %votes_of_yes 1 } } on *:text:no:#:{ if (%poll == on) { /inc %votes_of_no 1 } }