From 3c98c09054b64cb822262256f18507dd3d85a156 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 29 Aug 2006 15:15:03 +0000 Subject: [PATCH] die seiten der bots ignorieren --- neinomat-uebersichten | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neinomat-uebersichten b/neinomat-uebersichten index 7979d77..7efd453 100755 --- a/neinomat-uebersichten +++ b/neinomat-uebersichten @@ -1,6 +1,5 @@ #!/usr/bin/env ruby $:.unshift('vendor/ruby-mediawiki/lib') -$:.unshift('vendor/htree') require 'mediawiki/dotfile' @wiki = MediaWiki.dotfile(nil,'entropia') @putwhere = "Benutzer:Neinomat/" @@ -26,7 +25,7 @@ def check_page_against_category (page, category) re = Regexp.new("(" + Regexp.escape("title=") + "(\"|')" + Regexp.escape(CGI.escapeHTML(title)) + "(\"|')" + "|>" + Regexp.escape(title) + "<)") - if ! re.match(page_html) && title != page && title != @putwhere + page + if ! re.match(page_html) && title != page && title.to_s !~ /#{@putwhere}/ body += "* " + link_to(title) + "\n" count += 1 end