From d8b40a121ae63a2dbce723b87d60fe15847ae505 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 8 Feb 2005 20:08:04 +0000 Subject: [PATCH] Make sure we only grab the first temperate format, in cases were both F and C are listed. --- plugins/Weather/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Weather/plugin.py b/plugins/Weather/plugin.py index 50769aef4..2744bb6d0 100644 --- a/plugins/Weather/plugin.py +++ b/plugins/Weather/plugin.py @@ -389,7 +389,7 @@ class Weather(callbacks.Privmsg): temp = info['Temperature'] convert = self.registryValue('convert', msg.args[0]) if location and temp: - (temp, deg, unit) = temp.split() + (temp, deg, unit) = temp.split()[3:] # We only want temp format if convert: temp = self._getTemp(int(temp), deg, unit, msg.args[0]) else: