From 0e574d7144c2bd80d6b8ff350038c71083b534a3 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 23 Feb 2004 11:35:06 +0000 Subject: [PATCH] Forgot something --- plugins/Weather.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Weather.py b/plugins/Weather.py index c63004463..689c21d6b 100644 --- a/plugins/Weather.py +++ b/plugins/Weather.py @@ -94,8 +94,10 @@ class Weather(callbacks.Privmsg): def _toCelsius(self, temp, unit): if unit == 'K': return temp - 273.15 - else: + elif unit == 'F': return (temp - 32) * 5 /9 + else: + return temp def _getTemp(self, temp, deg, unit, chan): assert unit == unit.upper()