From 8f1329b20e047f0fda40d67a2b8f14097307f6bb Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 10 Nov 2003 15:26:55 +0000 Subject: [PATCH] Refactored a touch. --- plugins/ChannelDB.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/ChannelDB.py b/plugins/ChannelDB.py index b79e0a61a..a6eb57136 100644 --- a/plugins/ChannelDB.py +++ b/plugins/ChannelDB.py @@ -352,7 +352,7 @@ class ChannelDB(callbacks.Privmsg, if not ircdb.users.hasUser(name): try: hostmask = irc.state.nickToHostmask(name) - name = ircdb.users.getUserId(hostmask) + name = ircdb.users.getUser(hostmask).name except KeyError: irc.error(msg, conf.replyNoUser) return @@ -367,8 +367,6 @@ class ChannelDB(callbacks.Privmsg, else: (seen, m) = cursor.fetchone() seen = int(seen) - if isinstance(name, int): - 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)