diff options
Diffstat (limited to 'modules/wiktionary.py')
-rwxr-xr-x | modules/wiktionary.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/wiktionary.py b/modules/wiktionary.py index c8f665e..4a5f407 100755 --- a/modules/wiktionary.py +++ b/modules/wiktionary.py @@ -72,6 +72,8 @@ def format(word, definitions, number=2): return result.strip(' .,') def w(phenny, input): + if not input.group(2): + return phenny.reply("Nothing to define.") word = input.group(2) etymology, definitions = wiktionary(word) if not definitions: |