From ac57418802e00e7592306c1d3ae05ef679181e85 Mon Sep 17 00:00:00 2001 From: Kevin Murphy Date: Thu, 28 Oct 2004 07:07:18 +0000 Subject: [PATCH] RFE #1049535 : Wildcard "seen" results are now sorted by time seen (most recent first) --- plugins/Seen.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Seen.py b/plugins/Seen.py index 8baad6e65..9474c7616 100644 --- a/plugins/Seen.py +++ b/plugins/Seen.py @@ -96,6 +96,9 @@ class SeenDB(plugins.ChannelUserDB): continue nicks.append(s) L = [[nick, self.seen(channel, nick)] for nick in nicks] + def negativeTime(x): + return -x[1][0] + utils.sortBy(negativeTime, L) return L def seen(self, channel, nickOrId):