From 6ce5676a448d74d7b89d4c26cd7cb7ba39a7b2d2 Mon Sep 17 00:00:00 2001 From: Edward Powell Date: Sat, 21 Feb 2015 12:21:27 -0500 Subject: [PATCH] weather: Fix asking for weather for a nick Closes #741 --- willie/modules/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/willie/modules/weather.py b/willie/modules/weather.py index e78ee49bab..dd3b83b62f 100644 --- a/willie/modules/weather.py +++ b/willie/modules/weather.py @@ -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: