akick doesn't work on my server and neither did this script. =/
Nevermind. I wasn't op'd :P BUT. You're using $nick instead of $2 for the kick/reason. You have 2 if ($nick isop)'s and it doesn't kick clones.
But it does work.