From 986953131d1e399a9b277984a2234cd0c5f7656c Mon Sep 17 00:00:00 2001 From: "Sean B. Palmer" Date: Sat, 26 Apr 2008 15:54:35 +0100 Subject: Allow the user to configure the port in the config, and other fixes. --- modules/dict.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/dict.py') 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__': -- cgit v1.2.3-1-g7c22