RFE #1049535 : Wildcard "seen" results are now sorted by time seen (most recent first)

This commit is contained in:
Kevin Murphy 2004-10-28 07:07:18 +00:00
parent 81395a56d6
commit ac57418802

View File

@ -96,6 +96,9 @@ class SeenDB(plugins.ChannelUserDB):
continue continue
nicks.append(s) nicks.append(s)
L = [[nick, self.seen(channel, nick)] for nick in nicks] L = [[nick, self.seen(channel, nick)] for nick in nicks]
def negativeTime(x):
return -x[1][0]
utils.sortBy(negativeTime, L)
return L return L
def seen(self, channel, nickOrId): def seen(self, channel, nickOrId):