Most networks support /who 0 o to find all IRCOps so maybe you could capture the output of that /who, store the results and then do a nickname comparison.
This method will only require a single /who per connection.