just an idea, you have the variable set %!test, try just %test, the negate feature "!" usually has another reasoning, in mirc script, so try removing the ! and good luck