diff options
Diffstat (limited to 'modules/dict.py')
-rwxr-xr-x | modules/dict.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/dict.py b/modules/dict.py index 7ecaf0a..61fcee9 100755 --- a/modules/dict.py +++ b/modules/dict.py @@ -113,7 +113,10 @@ def dict(phenny, input): if len(results[key]) > 1: result += ', 2. ' + results[key][1] result += '; ' - phenny.say(result.rstrip('; ')) + result = result.rstrip('; ') + if result.endswith('-') and (len(result) < 30): + phenny.reply('Sorry, no definition found.') + else: phenny.say(result) dict.commands = ['dict'] if __name__ == '__main__': |