well most ircd's and networks prefix quits with Quit: so a netsplit wont have that. So you should check quit messages for something like
on *:quit: { if (*.*.* isin $1) && (*.*.* isin $2) { do stuff } }