diff options
author | Sean B. Palmer <sean@miscoranda.com> | 2011-06-17 08:48:39 -0700 |
---|---|---|
committer | Sean B. Palmer <sean@miscoranda.com> | 2011-06-17 08:48:39 -0700 |
commit | bbd2c7f94320a1e831c58acaac3a361b71caefea (patch) | |
tree | fd3e15ba6d31f2e9397c972d0028c3c562afcd3b /modules/dict.py | |
parent | 78ec2730460e8271e3a9d96056799785e6866f83 (diff) | |
parent | 482161e98b254c4d67a81def8c726dad7bf03af8 (diff) | |
download | bot-bbd2c7f94320a1e831c58acaac3a361b71caefea.tar.gz bot-bbd2c7f94320a1e831c58acaac3a361b71caefea.tar.bz2 bot-bbd2c7f94320a1e831c58acaac3a361b71caefea.zip |
Merge pull request #6 from Steve-V/master
Some commands use input without checking if it's actually been provided
Diffstat (limited to 'modules/dict.py')
-rwxr-xr-x | modules/dict.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/dict.py b/modules/dict.py index 125f686..8f13e99 100755 --- a/modules/dict.py +++ b/modules/dict.py @@ -22,6 +22,8 @@ r_info = re.compile( ) def dict(phenny, input): + if not input.group(2): + return phenny.reply("Nothing to define.") word = input.group(2) word = urllib.quote(word.encode('utf-8')) |