I agree with Kirby:> Why do you have all of those if's?
You might as well read all of those kick messages from a text file
menu channel {
Kick $iif($me isop $chan,$1):kick $chan $1 $read(kicks.txt)
}
Then put all the kick message in kicks.txt. Actually this method is shown in the help file under $read.
But then again, there are many methods to go about scripts of random kick messages. Whatever floats your boat, I reckon.