bin/rabbiter in rabbit-1.0.6 vs bin/rabbiter in rabbit-1.0.7

- old
+ new

@@ -83,13 +83,15 @@ rabbit = DRbObject.new_with_uri(options.rabbit_uri) twitter = Rabbit::Twitter.new(logger) twitter.start(*options.filters) do |status| next unless target?(status, options) + text = status["text"] + next if text.nil? + text = clean_text(status['text'], options.filters) + comment = "@#{status['user']['screen_name']}: #{text}" + logger.info(comment) begin - text = clean_text(status['text'], options.filters) - comment = "@#{status['user']['screen_name']}: #{text}" - logger.info(comment) rabbit.append_comment(comment) rescue DRb::DRbConnError logger.error("Rabbiter: #{$!.class}: #{$!.message}") end end