die seiten der bots ignorieren
This commit is contained in:
parent
2c7b447c0d
commit
3c98c09054
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue