From f49aea4a520fcadc9077589d5ecb8a0435d75fed Mon Sep 17 00:00:00 2001 From: Stawberri Date: Sun, 14 Dec 2014 02:48:45 -0800 Subject: [PATCH] Fixed log entries for replies I didn't notice that log entries were also manually adding meta.reply_prefix on. --- lib/twitter_ebooks/bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/twitter_ebooks/bot.rb b/lib/twitter_ebooks/bot.rb index 77a91e6..782458e 100644 --- a/lib/twitter_ebooks/bot.rb +++ b/lib/twitter_ebooks/bot.rb @@ -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