From 0b8a945a8318dbb5cafb0abac05ddf09c445d0a2 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Mon, 13 May 2013 15:51:48 +0200 Subject: [PATCH] [Search] Fix problem with !search and !title --- search.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/search.py b/search.py index 2ec2b2c..5d82641 100755 --- a/search.py +++ b/search.py @@ -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']