You could use alhammer's code it's found on this thread.

His code will only kick users who aren't an op on the channel. So all you have to do is remove the
if ($nick !isop $chan) return

IF statement, I'm not sure if this is the same on all IRCd's but the one I use often is Conference Room, on that IRCd you can't deop the founder you need higher access but kick/banning shouldn't be a problem.