Skip to content

Commit

Permalink
fixed the filtering logic to actually filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Jenson committed Apr 13, 2010
1 parent 52ed187 commit 7bc91e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions earlybird.rb
Expand Up @@ -53,8 +53,10 @@ def user_and_status(user_id, status_id)
end

def print_tweet_from_data(data)
if $filter and data['in_reply_to_user_id'] and @friends.include?(data['in_reply_to_user_id'])
print_tweet(data['user']['screen_name'], data['text'])
if $filter
if data['in_reply_to_user_id'] and @friends.include?(data['in_reply_to_user_id'])
print_tweet(data['user']['screen_name'], data['text'])
end
else
print_tweet(data['user']['screen_name'], data['text'])
end
Expand Down

0 comments on commit 7bc91e6

Please sign in to comment.