All pastes #804698 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-03 18:12 UTC
rendered paste body
on *:text:!set *:#:{
  if (%grats == on) {
    msg # [Grats is already Activated] | halt
  }
  elseif ($2 == gratz) && ($3 == on) && ($address($nick,4) == $address($me,4)) {
    set %grats on 
    msg # [Grats is now Activated] 
  }
  if (%grats == off) {
    msg # [Grats is already Desactivated] 
  }
  elseif ($2 == gratz) && ($3 == off) && ($address($nick,4) == $address($me,4)) {
    set %grats off 
    msg # [Grats is now Desactivated] 
  }
}


When i type !set gratz off it says Grats is already Activated =/
Other things work well