mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 17:39:27 +01:00
Make sure we only grab the first temperate format, in cases were both F and C are listed.
This commit is contained in:
parent
097b8f2bd5
commit
d8b40a121a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user