public function userPrivileges($chan, $nick)
    {
        if (!isset($this->chans[$chan][$nick])) {
            throw new \Erebot\NotFoundException('No such channel or user');
        }
        return $this->chans[$chan][$nick];
    }
public function userPrivileges($chan, $nick)
    {
        if (!isset($this->chans[$chan][$nick])) {
            throw new \Erebot\NotFoundException('No such channel or user');
        }
        return $this->chans[$chan][$nick];
    }
public function userPrivileges ( $ chan , $ nick ) { if ( ! isset ( $ this -> chans [ $ chan ] [ $ nick ] ) ) { throw new \ Erebot \ NotFoundException ( 'No such channel or user' ) ; } return $ this -> chans [ $ chan ] [ $ nick ] ; }
Returns channel status associated
with the given user.

\param string $chan
The IRC channel we're interested in.

\param string $nick
Nickname of the user whose status on
the given channel we're interested in.

\retval list
A list with the status/privileges
for that user on the given channel.
Each status is given by the letter
for the channel mode that refers to
it (eg. "o" for "operator status").

\throw Erebot::NotFoundException
The given channel or nickname is not
not known to the bot.
Returns channel status associated with the given user .