weather: change location quoting mechanism

This fixes two word place names, like 'Las Vegas, Nevada'
This commit is contained in:
Chris Skalenda 2015-08-04 15:26:42 -06:00
parent 374bdbc548
commit f6d376a207
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def weather(inp, chan='', nick='', reply=None, db=None, api_key=None):
state = http.quote_plus(state)
state += '/'
loc = http.quote_plus(loc)
loc = http.quote(loc)
url = 'http://api.wunderground.com/api/'
query = '{key}/geolookup/conditions/forecast/q/{state}{loc}.json' \