def reply(status_id, message)
status_id = status_id.strip_commas
status = client.status(status_id.to_i, :include_my_retweet => false)
users = Array(status.from_user)
if options['all']
major, minor, patch = RUBY_VERSION.split('.')
$KCODE='u' if major.to_i == 1 && minor.to_i < 9
require 'twitter-text'
users += Twitter::Extractor.extract_mentioned_screen_names(status.text)
users.uniq!
end
users.map!(&:prepend_at)
opts = {:in_reply_to_status_id => status.id, :trim_user => true}
opts.merge!(:lat => location.lat, :long => location.lng) if options['location']
reply = client.update("#{users.join(' ')} #{message}", opts)
say "Reply created by @#{@rcfile.active_profile[0]} to #{users.join(' ')} (#{time_ago_in_words(reply.created_at)} ago)."
say
say "Run `#{File.basename($0)} delete status #{reply.id}` to delete."
end