on *:TEXT:!poll*:#:{
set %pollstart $nick
set %poll $2-
msg $chan A Poll Has Been Started Type !PollQ To See The Question!
}
on *:TEXT:!PollQ:#:{
notice $nick The Poll Is %Poll
}
on *:TEXT:!yes:#:{
if ($nick == %yes. $+ $nick) { HALT }
set %yes. $+ $nick
inc %yes
notice $nick You Have Voted Yes.
}
on *:TEXT:!no:#:{
if ($nick == %no. $+ $nick) { HALT }
set %no. $+ $nick
inc %no
notice $nick You Have Voted No.
}
on *:TEXT:!endpoll:#:{
if ($nick == %pollStart) || ($nick isop $chan) || ($nick ishop $chan)
msg $chan The Poll Has Ended. The Results Were:
msg $chan Yes: %yes -- No: %no
}