From 53c9eaf7b802484b749cc44a3dbeb077da4f64ba Mon Sep 17 00:00:00 2001 From: spline Date: Thu, 20 Jun 2013 14:46:09 -0400 Subject: [PATCH] Fix tsearch count max because Twitters API apparently does not use count when issuing searchtype --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 84c205a..4aa4f35 100644 --- a/plugin.py +++ b/plugin.py @@ -434,7 +434,7 @@ class Tweety(callbacks.Plugin): irc.reply("ERROR: No Twitter Search results found for '{0}'".format(optterm)) return else: # we found something. - for result in results: # iterate over each. + for result in results[0:int(tsearchArgs['count'])]: # iterate over each. nick = result['user'].get('screen_name').encode('utf-8') name = result["user"].get('name').encode('utf-8') text = self._unescape(result.get('text')).encode('utf-8')