this detects repeats in channel and sets kick bans unlike most ircds today wich only have channel lock option to tackle this yet leave the repeaters in the channels wich is not effective this script gets rid of them it sets range bans to prevent them using another range from the ip/host they are using as most likely these kind of floods are done using proxied / vpn alike IPS
if you monitor multi channels and you want to synchronize ban settings on all channels you are on and have access to you can use these 2 events to check for ban setting in a channel and have them set on all channels u are on and have access to it will also match anyone matching banmask and remove from channel this may help manage channel and get rid of abuse