i've finally figured that out....

on 2:deop: doesn't detect the $nick but the $opnick.. that's why

so I have to add a level check on $nick into the script

Thanks all