Could use some minor tweaking to make it a bit more functional
if ( chanserv isin $nick ){ halt }
That will check to see if the user being kicked is chanserv, while i'm assuming you wanted it to check if the user kicking is chanserv. So, you'd probably want to change $nick to $knick. Also, add a space between the parentheses and brackets.
Not all servers/services have the aliases "/ns, /cs, and /ms" so you might want to use the full "/msg *serv "
And you might want to check you're (H)Op as well, as to prevent any error messages. The "{ halt }" at the end doesn't need the brackets, either.