public function quit($quitmessage = null, $priority = SMARTIRC_CRITICAL)
    {
        if ($quitmessage !== null) {
            $this->send('QUIT :'.$quitmessage, $priority);
        } else {
            $this->send('QUIT', $priority);
        }

        return $this->disconnect(true);
    }
public function quit($quitmessage = null, $priority = SMARTIRC_CRITICAL)
    {
        if ($quitmessage !== null) {
            $this->send('QUIT :'.$quitmessage, $priority);
        } else {
            $this->send('QUIT', $priority);
        }

        return $this->disconnect(true);
    }
public function quit ( $ quitmessage = null , $ priority = SMARTIRC_CRITICAL ) { if ( $ quitmessage !== null ) { $ this -> send ( 'QUIT :' . $ quitmessage , $ priority ) ; } else { $ this -> send ( 'QUIT' , $ priority ) ; } return $ this -> disconnect ( true ) ; }
sends QUIT to IRC server and disconnects

@param string $quitmessage optional quitmessage
@param integer $priority message priority, default is SMARTIRC_CRITICAL
@return Net_SmartIRC
@api
sends QUIT to IRC server and disconnects