Fixed AttributeError in seen.

This commit is contained in:
Jeremy Fincher 2003-10-29 16:18:16 +00:00
parent 2b68eb908f
commit 2a0687e46c

View File

@ -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)