protected function _rawsend($data)
    {
        if ($this->_updatestate() != SMARTIRC_STATE_CONNECTED) {
            return false;
        }

        $this->log(SMARTIRC_DEBUG_IRCMESSAGES, 'DEBUG_IRCMESSAGES: sent: "'
            .$data.'"', __FILE__, __LINE__
        );

        $result = fwrite($this->_socket, $data.SMARTIRC_CRLF);

        if (!$result) {
            // writing to the socket failed, means the connection is broken
            $this->_connectionerror = true;
        } else {
            $this->_lasttx = time();
        }

        return $result;
    }
protected function _rawsend($data)
    {
        if ($this->_updatestate() != SMARTIRC_STATE_CONNECTED) {
            return false;
        }

        $this->log(SMARTIRC_DEBUG_IRCMESSAGES, 'DEBUG_IRCMESSAGES: sent: "'
            .$data.'"', __FILE__, __LINE__
        );

        $result = fwrite($this->_socket, $data.SMARTIRC_CRLF);

        if (!$result) {
            // writing to the socket failed, means the connection is broken
            $this->_connectionerror = true;
        } else {
            $this->_lasttx = time();
        }

        return $result;
    }
protected function _rawsend ( $ data ) { if ( $ this -> _updatestate ( ) != SMARTIRC_STATE_CONNECTED ) { return false ; } $ this -> log ( SMARTIRC_DEBUG_IRCMESSAGES , 'DEBUG_IRCMESSAGES: sent: "' . $ data . '"' , __FILE__ , __LINE__ ) ; $ result = fwrite ( $ this -> _socket , $ data . SMARTIRC_CRLF ) ; if ( ! $ result ) { // writing to the socket failed, means the connection is broken $ this -> _connectionerror = true ; } else { $ this -> _lasttx = time ( ) ; } return $ result ; }
sends a raw message to the IRC server

Don't use this directly! Use message() or send() instead.

@internal
@param string $data
@return boolean
sends a raw message to the IRC server