From 973cc66793cd8f0484d10eb4175637965f2266ac Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 10 Nov 2003 15:21:08 +0000 Subject: [PATCH] Didn't have a .users before the getUser. --- plugins/ChannelDB.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ChannelDB.py b/plugins/ChannelDB.py index 8d3ce129c..b79e0a61a 100644 --- a/plugins/ChannelDB.py +++ b/plugins/ChannelDB.py @@ -359,7 +359,7 @@ class ChannelDB(callbacks.Privmsg, else: table = 'nick_seen' criterion = 'nickeq(name,%s)' - sql = "SELECT last_seen, last_msg FROM %s WHERE %s" % (table,criterion) + sql = "SELECT last_seen,last_msg FROM %s WHERE %s" % (table,criterion) #debug.printf(sql) cursor.execute(sql, name) if cursor.rowcount == 0: @@ -368,7 +368,7 @@ class ChannelDB(callbacks.Privmsg, (seen, m) = cursor.fetchone() seen = int(seen) if isinstance(name, int): - name = ircdb.getUser(int(name)).name + name = ircdb.users.getUser(int(name)).name s = '%s was last seen here %s ago saying %r' % \ (name, utils.timeElapsed(time.time() - seen), m) irc.reply(msg, s)