on *:TEXT:!poll*:#: {
if (%poll == $null) {
msg $chan 4 $nick started a poll: the question was12 $2-
set %poll yes
set %question $2-
elseif (%poll != $null) { .notice $nick There is a poll already a poll set! | halt }
}
}
on *:TEXT:!vote*:#: {
if (%poll != $null) {
inc %count 1
if ($2 == yes) {
/inc %yes
elseif ($2 == no) {
/inc %no
msg $chan 12 $nick has voted 4 $2 12on the latest poll:
}
}
}
}
on *:TEXT:!spoll*:#: {
if (%poll != $null) {
msg $chan the poll has been stopped the results are:
msg $chan %yes voted for yes!
msg $chan %no voted for no!
/unset %poll
}
}