You can specify an address (including wildcarded addresses) in the /ban command. Rather than using /mode #channel +b IP and then scanning the channel kicking them, try /ban -k #channel IP
But of course, then noone will be able to just silence users with a ban. That can be useful at times. (A banned user who is still on the channel cannot send messages to the channel, in case you weren't aware)