I don't get all the $len() $left() ? What is that for? Why not just make a variable
%auto.kick.user.addy = $address($$1,3)
and then
if ($address($nick,3) == %auto.kick.user.addy) { kick $chan $nick %reason }
For me, I would just use akick or +b ~q: . This method seems like cruel and unusual punishment ;/