From 56f5bc3028fc330387c8d960c77b15698e6a87b4 Mon Sep 17 00:00:00 2001 From: Stawberri Date: Thu, 15 Jan 2015 03:10:15 -0800 Subject: [PATCH] Fixed a warning message It was bugging me whenever I syntax checked. :< --- 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 69cd12e..b124953 100644 --- a/lib/twitter_ebooks/bot.rb +++ b/lib/twitter_ebooks/bot.rb @@ -389,7 +389,7 @@ module Ebooks return false end - text = meta.reply_prefix + text unless text.match /@#{Regexp.escape ev.user.screen_name}/i + 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)