You're already using "if $nick(%c,$me,~&@%)", so check out the syntax for that command. $nick(#channelname,$nick,r) returns a number only if they are a 'regular' user not having status in that channel. The 4th parameter is only needed for handling nicks having various combos of statuses. For example if you want to kick out the voices, you don't want to kick someone who has +ov status but only appears in nicklist with the greatest status.