Now that looks a lot better already.

Sure there's more you could do (better syntax checking to make sure that the order and the given parameters are correct (regex), making sure that the given nick is on the channel, making sure that you are able to kick the user (try making a cankick() that can be used anywhere, or ask me for mine), having more specific error messages for all those, and perhaps making the reason optional.

:b