If (by chance) you chat on unreal IRCd: unreal supports "extended bantypes" that e.g. allow you to ban all users that are at a specific channel.

In addition I found this old script and this recent one .