src/Plugin.php
protected function isInChannel($server, $channel, $user)
    {
        if (!isset($this->channels[$server][$channel]))
        {
            return false;
        }

        $names = array_keys($this->channels[$server][$channel], true, true);
        foreach ($names as $name) {
            if (!strcasecmp($name, $user)) {
                return true;
            }
        }

        return false;
    }
protected function isInChannel($server, $channel, $user)
    {
        if (!isset($this->channels[$server][$channel]))
        {
            return false;
        }

        $names = array_keys($this->channels[$server][$channel], true, true);
        foreach ($names as $name) {
            if (!strcasecmp($name, $user)) {
                return true;
            }
        }

        return false;
    }
protected function isInChannel ( $ server , $ channel , $ user ) { if ( ! isset ( $ this -> channels [ $ server ] [ $ channel ] ) ) { return false ; } $ names = array_keys ( $ this -> channels [ $ server ] [ $ channel ] , true , true ) ; foreach ( $ names as $ name ) { if ( ! strcasecmp ( $ name , $ user ) ) { return true ; } } return false ; }
Checks whether a given nickname is currently on a channel.

@param string $server
@param string $channel
@param string $user (case-insensitive)

@return bool
Checks whether a given nickname is currently on a channel .