summaryrefslogtreecommitdiffstats
path: root/modules/search.py
diff options
context:
space:
mode:
authorSean B. Palmer <sbp@aldebaran.local>2011-06-17 16:50:21 +0100
committerSean B. Palmer <sbp@aldebaran.local>2011-06-17 16:50:21 +0100
commit5261461f70ccd069768033edfa056c0e24c75131 (patch)
treef55aec64ede4fa6945913de1d37113f02164017a /modules/search.py
parent12c8cd07f52883299ed628752b580462c31ce9f1 (diff)
parentbbd2c7f94320a1e831c58acaac3a361b71caefea (diff)
downloadbot-5261461f70ccd069768033edfa056c0e24c75131.tar.gz
bot-5261461f70ccd069768033edfa056c0e24c75131.tar.bz2
bot-5261461f70ccd069768033edfa056c0e24c75131.zip
Merge branch 'master' of github.com:sbp/phenny
Diffstat (limited to 'modules/search.py')
-rwxr-xr-xmodules/search.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/search.py b/modules/search.py
index f99baf9..2751bb5 100755
--- a/modules/search.py
+++ b/modules/search.py
@@ -84,6 +84,8 @@ r_query = re.compile(
)
def gcs(phenny, input):
+ if not input.group(2):
+ return phenny.reply("Nothing to compare.")
queries = r_query.findall(input.group(2))
if len(queries) > 6:
return phenny.reply('Sorry, can only compare up to six things.')