Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $talk = get_page_contents('User_talk:' . $user);
- if (preg_match('%' . preg_quote('{{nobot}}') . '%iS',$talk)) {
- preg_match_all('%<nowiki>(.*?)' . preg_quote('{{nobots}}') . '(.*?)</nowiki>%msi', $talk, $nowikimatches);
- preg_match_all('%' . preg_quote('{{nobots}}') . '%msi', $talk, $nobotsmatches);
- if (sizeof($nowikimatches[0]) < sizeof($nobotsmatches[0])) {
- echo $user . '\'s talk page does not allow bots. Skipping...' . "\n";
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement