[Search] Fix problem with !search and !title

master
Sfan5 2013-05-13 15:51:48 +02:00
parent 1bf798e7e9
commit 0b8a945a83
1 changed files with 1 additions and 3 deletions

View File

@ -74,9 +74,7 @@ def g(phenny, input):
uri = google_search(query)
if uri:
phenny.reply(uri)
if not hasattr(phenny.bot, 'last_seen_uri'):
phenny.bot.last_seen_uri = {}
phenny.bot.last_seen_uri[input.sender] = uri
phenny.bot.last_seen_uri = uri
elif uri is False: phenny.reply("Problem getting data from Google.")
else: phenny.reply("No results found for '%s'." % query)
g.commands = ['g']