From 2a0687e46c40ed69845a6ad5ccbfb7899adeeec7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 29 Oct 2003 16:18:16 +0000 Subject: [PATCH] Fixed AttributeError in seen. --- plugins/ChannelDB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ChannelDB.py b/plugins/ChannelDB.py index e427232b2..fe7f9d3e6 100644 --- a/plugins/ChannelDB.py +++ b/plugins/ChannelDB.py @@ -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)