public function userHasMode(ConnectionInterface $connection, $channel, $nick, $mode)
    {
        $connectionMask = $this->getConnectionMask($connection);
        return isset($this->modes[$connectionMask][$channel][$nick][$mode]);
    }
public function userHasMode(ConnectionInterface $connection, $channel, $nick, $mode)
    {
        $connectionMask = $this->getConnectionMask($connection);
        return isset($this->modes[$connectionMask][$channel][$nick][$mode]);
    }
public function userHasMode ( ConnectionInterface $ connection , $ channel , $ nick , $ mode ) { $ connectionMask = $ this -> getConnectionMask ( $ connection ) ; return isset ( $ this -> modes [ $ connectionMask ] [ $ channel ] [ $ nick ] [ $ mode ] ) ; }
Returns whether a user has a particular mode in a particular channel.

@param \Phergie\Irc\ConnectionInterface $connection
@param string $channel
@param string $nick
@param string $mode
@return boolean
Returns whether a user has a particular mode in a particular channel .