Make sure we only grab the first temperate format, in cases were both F and C are listed.

This commit is contained in:
James Vega 2005-02-08 20:08:04 +00:00
parent 097b8f2bd5
commit d8b40a121a

View File

@ -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: