public function isOpped($channel, $nickname = null)
    {
        if (!$this->_channelsyncing) {
            $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: isOpped() is called '
                .'and the required Channel Syncing is not activated!',
                __FILE__, __LINE__
            );
            return false;
        }

        if ($nickname === null) {
            $nickname = $this->_nick;
        }

        return ($this->isJoined($channel, $nickname)
            && $this->getUser($channel, $nickname)->op
        );
    }
public function isOpped($channel, $nickname = null)
    {
        if (!$this->_channelsyncing) {
            $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: isOpped() is called '
                .'and the required Channel Syncing is not activated!',
                __FILE__, __LINE__
            );
            return false;
        }

        if ($nickname === null) {
            $nickname = $this->_nick;
        }

        return ($this->isJoined($channel, $nickname)
            && $this->getUser($channel, $nickname)->op
        );
    }
public function isOpped ( $ channel , $ nickname = null ) { if ( ! $ this -> _channelsyncing ) { $ this -> log ( SMARTIRC_DEBUG_NOTICE , 'WARNING: isOpped() is called ' . 'and the required Channel Syncing is not activated!' , __FILE__ , __LINE__ ) ; return false ; } if ( $ nickname === null ) { $ nickname = $ this -> _nick ; } return ( $ this -> isJoined ( $ channel , $ nickname ) && $ this -> getUser ( $ channel , $ nickname ) -> op ) ; }
Checks if we or the given user is opped on the specified channel and returns the result.
ChannelSyncing is required for this.

@api
@see setChannelSyncing
@param string $channel
@param string $nickname
@return boolean
Checks if we or the given user is opped on the specified channel and returns the result . ChannelSyncing is required for this .