From f0743ea88794830a0a64783cb715f90e12c64744 Mon Sep 17 00:00:00 2001 From: Joel McCoy Date: Thu, 8 Jan 2015 15:12:35 -0500 Subject: [PATCH] remove undefined variable from can_follow? check --- bots.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots.rb b/bots.rb index 2f8a7e2..5f0ccc6 100644 --- a/bots.rb +++ b/bots.rb @@ -193,7 +193,7 @@ class BoodooBot # Only follow our original user or people who are following our original user # @param user [Twitter::User] def can_follow?(username) - @original.nil? || username == @original || twitter.friendship?(username, @original) || twitter.friendship?(username, @original) || twitter.friendship?(username, auth_name) + @original.nil? || username == @original || twitter.friendship?(username, @original) || twitter.friendship?(username, @username) end def favorite(tweet)