Fix tsearch count max because Twitters API apparently does not use count when issuing searchtype

This commit is contained in:
spline 2013-06-20 14:46:09 -04:00
parent 3bbfb3884a
commit 53c9eaf7b8
1 changed files with 1 additions and 1 deletions

View File

@ -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')