Fix https links when available, everywhere

This commit is contained in:
Max 2017-10-06 02:54:37 +02:00 committed by Pierre-Olivier Mercier
commit e0d7ef1314
15 changed files with 19 additions and 19 deletions

View file

@ -13,7 +13,7 @@ from nemubot.module.more import Response
# GLOBALS #############################################################
URL_API = "http://open.mapquestapi.com/geocoding/v1/address?key=%s&location=%%s"
URL_API = "https://open.mapquestapi.com/geocoding/v1/address?key=%s&location=%%s"
# LOADING #############################################################
@ -23,7 +23,7 @@ def load(context):
raise ImportError("You need a MapQuest API key in order to use this "
"module. Add it to the module configuration file:\n"
"<module name=\"mapquest\" key=\"XXXXXXXXXXXXXXXX\" "
"/>\nRegister at http://developer.mapquest.com/")
"/>\nRegister at https://developer.mapquest.com/")
global URL_API
URL_API = URL_API % context.config["apikey"].replace("%", "%%")