All you can do is keep someone or a bot as an op at all times. The more ops you have, the better chance of not losing "ownership" of the channel. If it's a good group of people in the channel, sometimes you can get people to move to a temp channel so you can regain ops if you lose it... but not always. Eggdrop bots have a better chance of not being disconnected, so they will give you more chance of keeping the channel. Or, just get a group of 5-10 ops who you trust and who are on 24/7 and you shouldn't lose ops that way either.