From c83c8c3ec37257cea973f59dd376130ec45a0e87 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 30 Jul 2004 23:41:17 +0000 Subject: [PATCH] Fixed bugz0rs in URL, added vacuum (called on stats). --- plugins/URL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/URL.py b/plugins/URL.py index 21c7570d3..acdb6ef38 100644 --- a/plugins/URL.py +++ b/plugins/URL.py @@ -153,7 +153,6 @@ class URLDB(object): out = file(filename, 'w') notAdded = 0 urls = self.getUrlsAndNicks(lambda *args: True) - urls.reverse() seen = sets.Set() for (i, (url, nick)) in enumerate(urls): if url not in seen: @@ -161,6 +160,7 @@ class URLDB(object): else: urls[i] = None notAdded += 1 + urls.reverse() for urlNick in urls: if urlNick is not None: out.write(self._formatRecord(*urlNick))