Skip to content

Commit

Permalink
fix automod
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovct committed Nov 22, 2018
1 parent 2dfabfc commit e4b589f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleantalkMod.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ function cleantalk_check_message(&$msgOptions, $topicOptions, $posterOptions){
}
if ($ct_result->allow == 0){
$msgOptions['cleantalk_check_message_result'] = $ct_result->comment;
if ($modSettings['postmod_active']){
if ($modSettings['cleantalk_automod']){
if ($ct_result->stop_queue == 1){
cleantalk_log('spam message "' . $ct_result->comment . '"');
cleantalk_after_create_topic('Spam message blocked. Reason: ' . strip_tags($ct_result->comment).'. <br/>Username: '. $ct_request->sender_nickname.'<br/>E-mail'.$ct_request->sender_email.'<br/>Message: '.$ct_request->message);
Expand Down

0 comments on commit e4b589f

Please sign in to comment.