is there any way of detecting when a netsplit rejoins?

I have a limit script, which gets lagged real bad when a large netsplit rejoins, and sets the limit about 20 times.