Merge pull request #110 from tomjakubowski/patch-1

Improve weather plugin suggestions
This commit is contained in:
Ryan Hitchman 2014-05-11 15:25:07 -07:00
commit ebb1c5ed28
1 changed files with 3 additions and 3 deletions

View File

@ -82,13 +82,13 @@ def weather(inp, chan='', nick='', reply=None, db=None, api_key=None):
results = parsed_json['response']['results']
for place in results[:6]:
resp += '{city} '.format(**place)
resp += '{city}, '.format(**place)
if place['state']:
resp += '{state} '.format(**place)
resp += '{state}, '.format(**place)
if place['country_name']:
resp += '{country_name}, '.format(**place)
resp += '{country_name}; '.format(**place)
resp = resp[:-2]