When a netsplit completes, everyone joins at the same time. This script will only /who the first 3 people in a 2 second time period. (As I mentioned, you can adjust that if needed). 2 seconds after the last person joins from a netsplit, /who will work again. If normal people join all at once, it will again only /who the first 3 people within that 2 seconds and then it will wait until 2 seconds after the last person in the group joins and then /who will work again.

Note that the 2 second timer restarts anytime someone else joins. So, if you had 10 people all join, with 1 second between them, it will trigger the flood protection and 2 seconds after the 10th person joins, the flood protection will disable and /who will work again.