From a0b0999762901f718b1350a9fc0aa2ae0ccd4cbd Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 2 Dec 2003 03:10:16 +0000 Subject: [PATCH] Apparently the pigs at hamweather think Tsra == Thunder Storms. I didn't find that to be very obvious, so I added a little .replace() to be more friendly --- plugins/Http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/Http.py b/plugins/Http.py index e28559afe..94dcd6a17 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -227,6 +227,7 @@ class Http(callbacks.Privmsg): conds = self._condregex.search(html).group(1) if temp and conds and city and state: + conds = conds.replace('Tsra', 'Thunder Storms') s = 'The current temperature in %s, %s is %s. ' \ 'Conditions: %s.' % \ (city.strip(), state.strip(), temp, conds)