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

        if (!isset($this->_channels[strtolower($channel)])) {
            if ($nickname !== null) {
                $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: isJoined() is called'
                    .' on a user in a channel we are not joined to!',
                    __FILE__, __LINE__
                );
            }
            return false;
        }

        if ($nickname === null) {
            return true;
        }

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

        if (!isset($this->_channels[strtolower($channel)])) {
            if ($nickname !== null) {
                $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: isJoined() is called'
                    .' on a user in a channel we are not joined to!',
                    __FILE__, __LINE__
                );
            }
            return false;
        }

        if ($nickname === null) {
            return true;
        }

        return isset($this->getChannel($channel)->users[strtolower($nickname)]);
    }
public function isJoined ( $ channel , $ nickname = null ) { if ( ! $ this -> _channelsyncing ) { $ this -> log ( SMARTIRC_DEBUG_NOTICE , 'WARNING: isJoined() is called ' . 'and the required Channel Syncing is not activated!' , __FILE__ , __LINE__ ) ; return false ; } if ( ! isset ( $ this -> _channels [ strtolower ( $ channel ) ] ) ) { if ( $ nickname !== null ) { $ this -> log ( SMARTIRC_DEBUG_NOTICE , 'WARNING: isJoined() is called' . ' on a user in a channel we are not joined to!' , __FILE__ , __LINE__ ) ; } return false ; } if ( $ nickname === null ) { return true ; } return isset ( $ this -> getChannel ( $ channel ) -> users [ strtolower ( $ nickname ) ] ) ; }
checks if we or the given user is joined to 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 joined to the specified channel and returns the result ChannelSyncing is required for this .