From bd6b4c63959370c4136c26f323ee30acd5db26e2 Mon Sep 17 00:00:00 2001 From: kwaaak Date: Thu, 5 Nov 2015 00:19:47 +0100 Subject: [PATCH] Make CAD currency code case-insensitive --- sopel/modules/currency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel/modules/currency.py b/sopel/modules/currency.py index 59764fb829..b8c0210d52 100644 --- a/sopel/modules/currency.py +++ b/sopel/modules/currency.py @@ -26,7 +26,7 @@ def get_rate(code): - if code == 'CAD': + if code.upper() == 'CAD': return 1, 'Canadian Dollar' elif code == 'BTC': rates = json.loads(web.get('https://api.bitcoinaverage.com/ticker/all'))