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