public function is($mode, $nick, $chan)
    {
        $userMode = $this->storage->getUserMode($nick, $chan);

        if ($userMode) {
            return ($userMode & $mode) != 0;
        } else {
            return false;
        }
    }
public function is($mode, $nick, $chan)
    {
        $userMode = $this->storage->getUserMode($nick, $chan);

        if ($userMode) {
            return ($userMode & $mode) != 0;
        } else {
            return false;
        }
    }
public function is ( $ mode , $ nick , $ chan ) { $ userMode = $ this -> storage -> getUserMode ( $ nick , $ chan ) ; if ( $ userMode ) { return ( $ userMode & $ mode ) != 0 ; } else { return false ; } }
Checks whether or not a given user has a mode

@param int    $mode A numeric mode (identified by the class constants)
@param string $nick The nick to check
@param string $chan The channel to check in

@return bool
Checks whether or not a given user has a mode