Skip to content

Commit

Permalink
weather: Fix asking for weather for a nick
Browse files Browse the repository at this point in the history
Closes #741
  • Loading branch information
embolalia committed Feb 21, 2015
1 parent 00875e3 commit 6ce5676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion willie/modules/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def weather(bot, trigger):
'Give me a location, like .weather London, or tell me where you live by saying .setlocation London, for example.')
else:
location = location.strip()
woeid = bot.db.get_channel_value(location, 'woeid')
woeid = bot.db.get_nick_value(location, 'woeid')
if woeid is None:
first_result = woeid_search(location)
if first_result is not None:
Expand Down

0 comments on commit 6ce5676

Please sign in to comment.