All pastes #242881 Raw Edit

Untitled

public text v1 · immutable
·published 2006-11-07 20:40 UTC
rendered paste body
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
}