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
This commit is contained in:
James Vega 2003-12-02 03:10:16 +00:00
parent b1f0bbe887
commit a0b0999762

View File

@ -227,6 +227,7 @@ class Http(callbacks.Privmsg):
conds = self._condregex.search(html).group(1) conds = self._condregex.search(html).group(1)
if temp and conds and city and state: if temp and conds and city and state:
conds = conds.replace('Tsra', 'Thunder Storms')
s = 'The current temperature in %s, %s is %s. ' \ s = 'The current temperature in %s, %s is %s. ' \
'Conditions: %s.' % \ 'Conditions: %s.' % \
(city.strip(), state.strip(), temp, conds) (city.strip(), state.strip(), temp, conds)