Fixed log entries for replies

I didn't notice that log entries were also manually adding
meta.reply_prefix on.
This commit is contained in:
Stawberri 2014-12-14 02:48:45 -08:00
parent b460b73392
commit f49aea4a52

View file

@ -383,8 +383,8 @@ module Ebooks
return false
end
log "Replying to @#{ev.user.screen_name} with: #{meta.reply_prefix + text}"
text = meta.reply_prefix + text unless text.match /@#{Regexp.escape ev.user.screen_name}/i
log "Replying to @#{ev.user.screen_name} with: #{text}"
tweet = twitter.update(text, opts.merge(in_reply_to_status_id: ev.id))
conversation(tweet).add(tweet)
tweet