I was after a script which when a channel has become op-less and empty, ie only me in $chan without ops, it would automatically /hop that channel to regain ops.

I have already made the groups and the dialog with check box. the next part has completely gone over my head.

Any ideas?