User:AnomieBOT/source/tasks/AccidentalLangLinkFixer.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: AccidentalLangLinkFixer: * New task.
 
AnomieBOT (talk | contribs)
Updating published sources: AccidentalLangLinkFixer: * Trial, 15 edits.
Line 1:
{{ombox|type=notice|text= ApprovalIn requestedtrial (15 edits).<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 43]]}}
<syntaxhighlight lang="perl">
package tasks::AccidentalLangLinkFixer;
Line 10:
Task: AccidentalLangLinkFixer
BRFA: Wikipedia:Bots/Requests for approval/AnomieBOT 43
Status: BRFAIn trial
Created: 2010-09-11
 
Line 46:
 
=for info
ApprovalIn requestedtrial (15 edits).<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 43]]
 
=cut
 
sub approved {
return 02;
}
 
Line 58:
my $res;
 
$api->task('AccidentalLangLinkFixer', 0, 10, qw/d::IWNS d::Nowiki d::Trial/);
 
$api->store->{'trial edit count'}=0 unless exists($api->store->{'trial edit count'});
return $api->trial_complete('AnomieBOT 43') if $api->store->{'trial edit count'}>=15;
 
my $help='User:'.$api->user.'/docs/AccidentalLangLinkFixer';
Line 130 ⟶ 133:
next;
}
return $api->trial_complete('AnomieBOT 43') if ++$api->store->{'trial edit count'}>=15;
} else {
$api->log("Updating saved category and language links for $page");