mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fixed AttributeError in seen.
This commit is contained in:
parent
2b68eb908f
commit
2a0687e46c
@ -342,7 +342,7 @@ class ChannelDB(plugins.ChannelDBHandler, callbacks.PrivmsgCommandAndRegexp):
|
||||
else:
|
||||
(seen, m) = cursor.fetchone()
|
||||
seen = int(seen)
|
||||
if name.isdigit():
|
||||
if isinstance(name, int):
|
||||
name = ircdb.getUser(int(name)).name
|
||||
s = '%s was last seen here %s ago saying %r' % \
|
||||
(name, utils.timeElapsed(time.time() - seen), m)
|
||||
|
Loading…
Reference in New Issue
Block a user