So there is lots of scripts out there that will rescue a channel if a group of ops suddenly get deopped all at once.

But what about slower ops removal?

Where instead of the person trying to take over going:

/mode # -ooo n1 n2 n3 etc..

They did:

/mode # -o n1
/mode # -o n2
/mode # -o n3 etc..

Mass deop scripts seem to not take this into account, so how would I approach making a small protection script to combat this method?

Any help offered is much appreciated :-)