protected function notify($options, $room = null)
    {
        if (!isset($options['notification']) or !$options['notification']) {
            return false;
        }

        extract($options['notification']);
        
        if (!isset($room_id) or !$room_id) {
            return false;
        }

        if ($room) {
            $message = str_replace('[room_name]', $room->name, $message);
        }

        return (boolean) $this->hipchat->message_room(
            $room_id,
            $from,
            $message,
            $notify,
            $color,
            $message_format
        );
    }
protected function notify($options, $room = null)
    {
        if (!isset($options['notification']) or !$options['notification']) {
            return false;
        }

        extract($options['notification']);
        
        if (!isset($room_id) or !$room_id) {
            return false;
        }

        if ($room) {
            $message = str_replace('[room_name]', $room->name, $message);
        }

        return (boolean) $this->hipchat->message_room(
            $room_id,
            $from,
            $message,
            $notify,
            $color,
            $message_format
        );
    }
protected function notify ( $ options , $ room = null ) { if ( ! isset ( $ options [ 'notification' ] ) or ! $ options [ 'notification' ] ) { return false ; } extract ( $ options [ 'notification' ] ) ; if ( ! isset ( $ room_id ) or ! $ room_id ) { return false ; } if ( $ room ) { $ message = str_replace ( '[room_name]' , $ room -> name , $ message ) ; } return ( boolean ) $ this -> hipchat -> message_room ( $ room_id , $ from , $ message , $ notify , $ color , $ message_format ) ; }
Send notification that a new room has been created.

@param array $options
@param object|null $room
@return boolean
Send notification that a new room has been created .