You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
457 B
Ruby
17 lines
457 B
Ruby
#!/usr/bin/env ruby
|
|
require '../mediawikibot'
|
|
|
|
if ARGV.size() != 2
|
|
$stderr.print($0 + " <wiki-user> <wiki-password>\n")
|
|
exit(1)
|
|
end
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
b = MediaWikiBot::WikiBot.new("http://entropia.de/wiki/")
|
|
b.login(ARGV[0], ARGV[1])
|
|
|
|
old = b.get_raw("RoboRally")
|
|
new = old.gsub(/\[#reg ([^|]*?)\]/i, '[[#Gesperrte Register|\1]]')
|
|
b.edit("RoboRally", new, "Kaputte interne Links repariert")
|