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
1 changed files with 3 additions and 0 deletions

View File

@ -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):