You need to add two lines to the search.php file. Find this query:
Code:
$posts = $DB_site->query("
SELECT postid
FROM " . TABLE_PREFIX . "post AS post
INNER JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = post.threadid)
WHERE forumid IN(" . implode(', ', $forumids) . ")
AND thread.lastpost >= $datecut
AND thread.visible = 1
AND sticky IN (0,1)
AND post.dateline >= $datecut
AND post.visible = 1
ORDER BY post.dateline DESC
LIMIT " . intval($vboptions['maxresults']) . "
");
Within those AND statements, add one more that says:
Code:
AND thread.postuserid != 1234
Where 1234 is the userID of the bot that you're trying to exclude. Do the same thing to the following query right below:
Code:
$threads = $DB_site->query("
SELECT threadid
FROM " . TABLE_PREFIX . "thread AS thread
WHERE forumid IN(" . implode(', ', $forumids) . ")
AND thread.lastpost >= $datecut
AND visible = 1
AND sticky IN (0,1)
ORDER BY lastpost DESC
LIMIT " . intval($vboptions['maxresults']) . "