All pastes #69460 Raw Edit

Anonymous

public text v1 · immutable
#69460 ·published 2006-06-22 23:20 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!

      }

    }

  }

}