This is not going to work... for one, nick changes are a server-wide event so they don\'t generate a #channel attached to them... you\'d either have to hardcode a channel into the kickban command, or loop through $comchan. Two... $nick is the OLD nick, you can\'t kick it out, it\'ll give \"no such user\", you need to kickban $newnick.