public function mode($target, $newmode = null, $priority = SMARTIRC_MEDIUM)
    {
        if ($newmode !== null) {
            $this->send('MODE '.$target.' '.$newmode, $priority);
        } else {
            $this->send('MODE '.$target, $priority);
        }
        return $this;
    }
public function mode($target, $newmode = null, $priority = SMARTIRC_MEDIUM)
    {
        if ($newmode !== null) {
            $this->send('MODE '.$target.' '.$newmode, $priority);
        } else {
            $this->send('MODE '.$target, $priority);
        }
        return $this;
    }
public function mode ( $ target , $ newmode = null , $ priority = SMARTIRC_MEDIUM ) { if ( $ newmode !== null ) { $ this -> send ( 'MODE ' . $ target . ' ' . $ newmode , $ priority ) ; } else { $ this -> send ( 'MODE ' . $ target , $ priority ) ; } return $ this ; }
sets or gets the mode of an user or channel

Changes/requests the mode of the given target.

@param string $target the target, can be an user (only yourself) or a channel
@param string $newmode the new mode like +mt
@param integer $priority message priority, default is SMARTIRC_MEDIUM
@return Net_SmartIRC
@api
sets or gets the mode of an user or channel