All pastes #68040 Raw Edit

Unnamed

public text v1 · immutable
#68040 ·published 2006-06-20 22:36 UTC
rendered paste body
on *:TEXT:!givepoint *:#:{
  if ((%points. [ $+ [ $2 ] ] == $null) && ($nick isop $chan)) {
    /set %points. [ $+ [ $2 ] ] 1
    /msg $chan $2 Has recieved a favor point! 
  }
  else { 
    if ((%points. [ $+ [ $2 ] ] == 10) && ($nick isop $chan)) {
      /mode $chan +o $2
      /msg $chan $2 got 10 points! Congratulations You have been OP'd for being so liked :)
      /unset %points. [ $+ [ $2 ] ]
    }
    else { 
      if ($nick isop $chan) {
        /inc %points. [ $+ [ $2 ] ] 1
        /msg $chan $2 Has recieved a favor point!
      }
    }
  }
}