From 8ea9c02a375c8913a94623ff26571280be0d655c Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 8 Oct 2005 06:02:54 +0000 Subject: [PATCH] MediaWiki 1.3.x really needs "wpLoginattempt" --- mediawikibot.rb | 3 ++- stadtwiki-upcoming | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mediawikibot.rb b/mediawikibot.rb index 121d624..be47517 100755 --- a/mediawikibot.rb +++ b/mediawikibot.rb @@ -60,7 +60,8 @@ class WikiBot post_form(url_submitlogin(), { "wpName" => wiki_name, - "wpPassword" => wiki_password }) + "wpPassword" => wiki_password, + "wpLoginattempt" => "" }) end def is_redirect? (title) diff --git a/stadtwiki-upcoming b/stadtwiki-upcoming index 4cdbe68..ccbdb85 100755 --- a/stadtwiki-upcoming +++ b/stadtwiki-upcoming @@ -24,7 +24,7 @@ def get_events() return events end -body = "Folgende Termine stammen von http://upcoming.org:\n\n" +body = "Folgende Termine stammen von #{$ical_url}:\n\n" get_events().each do |event| body += "* #{event.dtstart.mday}.#{event.dtstart.month}. #{event.summary}\n" end