From 14db2532b7ef64707395cf21a7730abd8dcc4441 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 28 Sep 2010 13:28:24 +0200 Subject: twitter: fix status count --- data/rbot/plugins/twitter.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/twitter.rb b/data/rbot/plugins/twitter.rb index 753a0e45..2ce8142f 100644 --- a/data/rbot/plugins/twitter.rb +++ b/data/rbot/plugins/twitter.rb @@ -90,7 +90,7 @@ class TwitterPlugin < Plugin return false end - count = @bot.config['twitter.friends_status_count'] + count = friends ? @bot.config['twitter.friends_status_count'] : @bot.config['twitter.status_count'] user = URI.escape(nick) if @has_oauth and @registry.has_key?(m.sourcenick + "_access_token") if friends @@ -98,7 +98,6 @@ class TwitterPlugin < Plugin uri = "https://api.twitter.com/1/statuses/friends_timeline.xml?count=#{count}" response = @access_token.get(uri).body else - count = @bot.config['twitter.status_count'] uri = "https://api.twitter.com/1/statuses/user_timeline.xml?screen_name=#{user}&count=#{count}" response = @access_token.get(uri).body end -- cgit v1.2.3