From 8287abfc431eece3ce9c4a8a01c969b989ff42a2 Mon Sep 17 00:00:00 2001 From: Robin Groppe Date: Mon, 26 Oct 2015 12:58:13 +0100 Subject: [PATCH] Update weather.lua --- plugins/weather.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/weather.lua b/plugins/weather.lua index c0a6fe5f..d1082827 100644 --- a/plugins/weather.lua +++ b/plugins/weather.lua @@ -3,8 +3,8 @@ do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) - print("Finding weather in ", location) location = string.gsub(location," ","+") + print("Finding weather in ", location) local url = BASE_URL url = url..'?q='..location url = url..'&units=metric'