diff --git a/currency.py b/currency.py index d745393591..4dceea41af 100644 --- a/currency.py +++ b/currency.py @@ -51,6 +51,8 @@ def get_rate(code): @example('.cur 20 EUR in USD') def exchange(bot, trigger): """Show the exchange rate between two currencies""" + if not trigger.group(2): + return bot.reply("No search term. An example: .cur 20 EUR in USD") match = regex.match(trigger.group(2)) if not match: # It's apologetic, because it's using Canadian data.