From d5a324a0d2ec5d7b520e1789c1c0fceca82584f2 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sat, 25 Sep 2004 17:55:22 +0000 Subject: [PATCH] It's nice when Weather.weather works. --- plugins/Weather.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/Weather.py b/plugins/Weather.py index 1bff9cf54..168c2aa6f 100644 --- a/plugins/Weather.py +++ b/plugins/Weather.py @@ -111,13 +111,12 @@ class Weather(callbacks.Privmsg): s = self.userValue('lastLocation', msg.prefix) if s: args = [s] - else: - location = privmsgs.getArgs(args) - self.setUserValue('lastLocation', msg.prefix, - location, ignoreNoUser=True) + location = privmsgs.getArgs(args) + self.setUserValue('lastLocation', msg.prefix, + location, ignoreNoUser=True) realCommandName = self.registryValue('command', channel) realCommand = getattr(self, realCommandName) - ret = realCommand(irc, msg, args, location) + ret = realCommand(irc, msg, args) def _toCelsius(self, temp, unit): if unit == 'K':