on *:text:!set *:#:{ if ($2 == gratz) && ($3 == on) && ($address($nick,4) == $address($me,4)) { set %grats on msg # [Grats is now Activated] } elseif (%grats == on) { msg # [Grats is already Activated] } if ($2 == gratz) && ($3 == off) && ($address($nick,4) == $address($me,4)) { set %grats off msg # [Grats is now Desactivated] } elseif (%grats == off) { msg # [Grats is already Desactivated] } }