confused confused confused confused confused

Another Problem with my code:

#antiidle on
alias anti.on {
if (%idle != on) {
set %idle on
echo -a Anti Idle Is On
}
else {
echo -a Anti Idle is Already
}
}
alias idle.off {
if (%idle != off) {
set %idle off
echo -a Anti Idle Is Off
}
else {
echo -a Anti idle Is Already Off.
}
}
on *:Connect: { .timeridle 0 1 anti }
alias anti {
if (($idle >= 1 ) && (%idle = on)) {
/msg $me ...
/resetidle 1
}
}
#antiidle end

once on, it will work perfectly, but if i uncheck the tickbox, there is this error...

· · Error : /anti is an unknown command

Now that is repeated every second, please help.

confused confused confused confused confused


sub-zero.homeip.net:6667