Wikipedia:Bots/Requests for approval/Petan-Bot task9

Petan-Bot

[[User:Petan-Bot]] task 9

{{Newbot|Petan-Bot|task9}}

Operator: {{User|Petrb}}

Time filed: 18:07, Tuesday June 28, 2011 (UTC)

Automatic or Manual: Automatic unsupervised

Programming language(s): c++

Source code available: yes

Function overview: Do http://en.wikipedia.org/wiki/Wikipedia:Bot_requests/Archive_42#moving_afc_pages

Links to relevant discussions (where appropriate): http://en.wikipedia.org/wiki/Wikipedia:Bot_requests/Archive_42#moving_afc_pages

Edit period(s): hourly

Estimated number of pages affected: 10-50 every day

Exclusion compliant (Y/N): Y

Already has a bot flag (Y/N): Y

Function details: Moves the pages which have the afc template and are in userspace to afc space Petrb (talk) 18:07, 28 June 2011 (UTC)

=Discussion=

{{BotTrial|edits=50}} Let's see how this is going to work out. For now, it's up to you if you move reviewed requests or not. - Kingpin13 (talk) 19:43, 28 June 2011 (UTC)

::{{BotTrialComplete}} Petrb (talk) 21:39, 28 June 2011 (UTC)

:Does this only move pages from userspace (I see some incorrect moves of already existing AfC pages)? What happens if the candidate page is a sub-sub-page (for example, User:H3llkn0wz/drafts/My first article)? What happens if the draft has a talk page?

:Also, can you fix the wrong moves, such as [http://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Articles_for_creation/Wikipedia_talk:Articles_for_creation/_Chief_Emmanual_Oyedele_Ashamu&diff=prev&oldid=436742394 this] and others, please? —  HELLKNOWZ  ▎TALK 13:44, 7 July 2011 (UTC)

::It doesn't move talk pages and now it only move the User: sub - pages, concerning / it moves everything behind User:Name so even if article is something like User:blah//dev/md it move /dev/md Petrb (talk) 05:58, 12 July 2011 (UTC)

Lets have another trial, make sure it is indeed working correctly now {{BotTrial|edits=50}} Also can you please post the source code somewhere so I can review it? --Chris 11:25, 24 July 2011 (UTC)

::Sure http://en.wikipedia.org/w/index.php?title=User:Petan-Bot/source/9 Petrb (talk) 19:38, 26 July 2011 (UTC)

:::The code is missing the removal of the (optional) {{tld|userspacedraft}} template on the moved pages. mabdul 19:48, 26 July 2011 (UTC)

{{BotApproved}} Don't see any more issues. —  HELLKNOWZ  ▎TALK 19:33, 4 August 2011 (UTC)

:The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.