lib/chatterbot/reply.rb in chatterbot-0.2.2 vs lib/chatterbot/reply.rb in chatterbot-0.2.3

- old
+ new

@@ -7,10 +7,11 @@ # handle replies for the bot def replies(&block) return unless require_login debug "check for replies since #{since_id}" - results = client.replies(:since_id => since_id) + opts = since_id > 0 ? {:since_id => since_id} : {} + results = client.replies(opts) if results.is_a?(Hash) && results.has_key?("error") critical results["error"] else results.each { |s|