# File rddc_update.rb, line 59
  def return_code
    update if @updated == nil

    if @main_options.get_option("return_code_ip_only") == "false" and
    (@main_options.get_option("before_return_code") == nil or
   @main_options.get_option("after_return_code") == nil) then
      return @updated
    else if @main_options.get_option("before_return_code") == nil or
             @main_options.get_option("after_return_code") == nil then
           if @updated.index(@ip.ip) != nil then
             return @updated[@updated.index(@ip.ip)..@updated.index(@ip.ip)+@ip.ip.length-1]
           else
             return "error"
           end
         else
           before=@updated.index(@main_options.get_option("before_return_code")) + 
                  @main_options.get_option("before_return_code").length
           after=@updated.index(@main_options.get_option("after_return_code"))-1
           return @updated[before..after]
         end
    end
  end