After playing with the parts of the if, it seems the first one always fails. What is it supposed to be calculating?

Also, if $12 is supposed to be the nick of the person doing the kicking, won't that be getting changed if multiple channels are added in front of it in the output?