diff options
author | Steve Vaught <Steven.D.Vaught@gmail.com> | 2011-04-19 00:50:58 -0400 |
---|---|---|
committer | Steve Vaught <Steven.D.Vaught@gmail.com> | 2011-04-19 00:50:58 -0400 |
commit | 482161e98b254c4d67a81def8c726dad7bf03af8 (patch) | |
tree | 41cf0f9f96637b126f3e6c177ed1a8d02f2f46a5 /modules/search.py | |
parent | 6c00d59973d59cc7ac97fde35739038eece2513b (diff) | |
download | bot-482161e98b254c4d67a81def8c726dad7bf03af8.tar.gz bot-482161e98b254c4d67a81def8c726dad7bf03af8.tar.bz2 bot-482161e98b254c4d67a81def8c726dad7bf03af8.zip |
Added error checking for empty parameters
Diffstat (limited to 'modules/search.py')
-rwxr-xr-x | modules/search.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/search.py b/modules/search.py index 1067531..d83a47e 100755 --- a/modules/search.py +++ b/modules/search.py @@ -69,6 +69,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.') |