nothings wrong, it only gets triggered if ur the one who gets kick as it is spcified in the code if ($knick == $me) then it will get triggered