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;
    }