mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +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:
|
else:
|
||||||
(seen, m) = cursor.fetchone()
|
(seen, m) = cursor.fetchone()
|
||||||
seen = int(seen)
|
seen = int(seen)
|
||||||
if name.isdigit():
|
if isinstance(name, int):
|
||||||
name = ircdb.getUser(int(name)).name
|
name = ircdb.getUser(int(name)).name
|
||||||
s = '%s was last seen here %s ago saying %r' % \
|
s = '%s was last seen here %s ago saying %r' % \
|
||||||
(name, utils.timeElapsed(time.time() - seen), m)
|
(name, utils.timeElapsed(time.time() - seen), m)
|
||||||
|
Loading…
Reference in New Issue
Block a user