yeap.
This is the code from some spam plugin, marks as spam but doesn't update the count i guess.
function after_item_posted($item) {
if( getEnableOn() == 1 || getEnableOn() == 2 ){
$arrstopword= getStopWords();
$exparrstopword= explode(",", $arrstopword);
foreach ($exparrstopword as $expstopword) {
if (preg_match("/" . $expstopword. "/i", $item['s_title']) || preg_match("/" . $expstopword. "/i", $item['s_description'])) {
ModelSpamKiller::newInstance()->blockItem($item['pk_i_id']);
}
}
}
}
and
function blockItem($id){
$this->dao->from($this->getItemTable()) ;
$this->dao->set(array(
'b_spam' => 1
)) ;
$this->dao->where(array(
'pk_i_id' => $id
)) ;
$this->dao->update() ;
}