Jump to content

User talk:Full-date unlinking bot/code

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

HTML Comment

[edit]

I could be wrong, but I don't think you actually write the HTML comment anywhere (though you check for its existance). - Jarry1250 [ In the UK? Sign the petition! ] 10:36, 23 August 2009 (UTC)[reply]

I must fix this. Thank you. @harej 10:39, 23 August 2009 (UTC)[reply]

exclusion compliance

[edit]

Sorry, I meant to get back to you about this earlier but haven't had a chance. To make the bot exclusion compliant add the following code in the unlinker function, just before the $objwiki->edit line:

global $botuser;
if (!$objwiki->nobots($link,$botuser,$contents)) {
	return false;
}

--Chris 12:30, 23 August 2009 (UTC)[reply]

It's probably more worthwhile to put that in checktoprocess() so that the bot does not have to go through the rigamarole of parsing all the dates to figure out that it wasn't allowed to do that to begin with. That is what I have done. @harej 18:06, 23 August 2009 (UTC)[reply]