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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: AutoAssessor2: * Done!
AnomieBOT (talk | contribs)
Updating published sources: d::WikiProjectTagging: * Add change reporting to WPBfixshell(). * Have WPBfixshell() change shell to WPB if >=6 banners, WPBS if <=3. WikiProjectTagger: * End WP:LONDON run. Seems to have been finished anyway before Domas
Line 334:
# Need to edit?
if($outtxt ne $intxt && $any){
$outtxt=$api->WPBfixshell($outtxt);
$found[-1]='and '.$found[-1] if @found>1;
my $summary="Assessing ".join((@found>2)?', ':' ', @found)." per $req";
 
my @cleanup=();
$outtxt=$api->WPBfixshell($outtxt, \@cleanup);
if(ref($outtxt) eq 'HASH'){
$api->warn("Processing $title failed: ".$outtxt->{'error'}."\n");
next;
}
$summary.="; general banner cleanup (".join(', ', @cleanup).")" if @cleanup;
 
$api->log("$summary in $talk");
my $r=$api->edit($tok, $outtxt, $summary, 1, 1);