on @*:join:#:{
if ($right($nick,4) !isnum) return
if ($had($address,0) >= 2) {
var %hd1 = $hn($had($address,1)), %hd2 = $hn($had($address,2))
if (%hd1 ison #) && (%hd2 ison #) {
kick # %hd1 Ghosting
kick # %hd2 Ghosting
}
}
}
This is untested but should work. Kind of hard for me to test since Im not op in many rooms and my room, well, SoulFly doesn't have this issue with prison numbers.
Edit the word Ghosting to whatever kick message you like.
Let me know if you have any trouble.