mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fix a new bug where a person not having a 'seen' status wasn't properly
trapped
This commit is contained in:
parent
ed44f00c6f
commit
d370c485f6
@ -111,7 +111,9 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
|
||||
d = d
|
||||
dp = 0.
|
||||
seen = self._gkseen.search(utils.htmlToText(profile))
|
||||
if 'is hiding' in seen.group(0):
|
||||
if seen is None:
|
||||
seen = ''
|
||||
elif 'is hiding' in seen.group(0):
|
||||
seen = '%s is hiding his/her online status.' % name
|
||||
elif seen.group(2).startswith('0'):
|
||||
seen = '%s is on gameknot right now.' % name
|
||||
|
Loading…
Reference in New Issue
Block a user