public function send($data, $priority = SMARTIRC_MEDIUM)
    {
        switch ($priority) {
            case SMARTIRC_CRITICAL:
                $this->_rawsend($data);
                break;

            case SMARTIRC_HIGH:
            case SMARTIRC_MEDIUM:
            case SMARTIRC_LOW:
                $this->_messagebuffer[$priority][] = $data;
                break;

            default:
                $this->log(SMARTIRC_DEBUG_NOTICE, "WARNING: message ($data) "
                    ."with an invalid priority passed ($priority), message is "
                    .'ignored!', __FILE__, __LINE__
                );
                return false;
        }

        return $this;
    }
public function send($data, $priority = SMARTIRC_MEDIUM)
    {
        switch ($priority) {
            case SMARTIRC_CRITICAL:
                $this->_rawsend($data);
                break;

            case SMARTIRC_HIGH:
            case SMARTIRC_MEDIUM:
            case SMARTIRC_LOW:
                $this->_messagebuffer[$priority][] = $data;
                break;

            default:
                $this->log(SMARTIRC_DEBUG_NOTICE, "WARNING: message ($data) "
                    ."with an invalid priority passed ($priority), message is "
                    .'ignored!', __FILE__, __LINE__
                );
                return false;
        }

        return $this;
    }
public function send ( $ data , $ priority = SMARTIRC_MEDIUM ) { switch ( $ priority ) { case SMARTIRC_CRITICAL : $ this -> _rawsend ( $ data ) ; break ; case SMARTIRC_HIGH : case SMARTIRC_MEDIUM : case SMARTIRC_LOW : $ this -> _messagebuffer [ $ priority ] [ ] = $ data ; break ; default : $ this -> log ( SMARTIRC_DEBUG_NOTICE , "WARNING: message ($data) " . "with an invalid priority passed ($priority), message is " . 'ignored!' , __FILE__ , __LINE__ ) ; return false ; } return $ this ; }
sends an IRC message

Adds a message to the messagequeue, with the optional priority.
$priority:
SMARTIRC_CRITICAL
SMARTIRC_HIGH
SMARTIRC_MEDIUM
SMARTIRC_LOW

@api
@param string $data
@param integer $priority must be one of the priority constants
@return boolean|Net_SmartIRC
sends an IRC message