The 'seen' regex for gkstats was changed back to searching through text instead of html.

This commit is contained in:
James Vega 2003-04-14 16:49:20 +00:00
parent c251ad32f3
commit c7a867b589

View File

@ -165,7 +165,7 @@ class Http(callbacks.Privmsg):
rating = self._gkrating.search(profile).group(1) rating = self._gkrating.search(profile).group(1)
games = self._gkgames.search(profile).group(1) games = self._gkgames.search(profile).group(1)
(w, l, d) = self._gkrecord.search(profile).groups() (w, l, d) = self._gkrecord.search(profile).groups()
seen = self._gkseen.search(profile).group(1) seen = self._gkseen.search(utils.htmlToText(profile)).group(1)
if seen.find("is hiding") != -1: if seen.find("is hiding") != -1:
seen = '%s is hiding his/her online status.' % name seen = '%s is hiding his/her online status.' % name
elif seen.startswith('0'): elif seen.startswith('0'):