Yes, there's a small error with the on join event (my mistake), it must only trigger when you join the channel, not for others:
on me:*:join:#channel:set %checknick $+ $chan 1
Doesn't work on join. On an user nick change, it works, warn included. On nick jooin, it doesn't work