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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: General: * Add lots of backslashes to regexes, because new Perl whines about unescaped left-braces.
AnomieBOT (talk | contribs)
Updating published sources: General: * Increase allowed length in most edit summary length checks. RandomPagePicker is the exception, since the summaries there aren't bot-controlled shorter is probably better.
Line 271:
$api->log("Archiving closed XfDs from $page...");
my $summary="[[$apage|Archiving closed XfDs]]".$screwup.": ".join(" ", @summary);
$summary="[[$apage|Archiving closed XfDs]]".$screwup.": [".scalar(@summary)." discussions]" if length($summary)>2501000;
$res=$api->edit($tok, $outtxt, $summary, 0, 1);
if($res->{'code'} ne 'success'){