User talk:Full-date unlinking bot/code
Latest comment: 15 years ago by Harej in topic exclusion compliance
HTML Comment
editI 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)
- I must fix this. Thank you. @harej 10:39, 23 August 2009 (UTC)
exclusion compliance
editSorry, 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)
- 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)