Not sure if this has been reported, but you have a real problem in this. The $candecimate variable will not show up if you have a zero (0) value set for the maximum posts. Also after that fixed I realized that if it was at zero, it would throw an error from decimator.php. Both of my fixes are tested on 3.6.8.
I had to change the plugin to this:
PHP Code:
global $candecimate, $vbulletin;
if($vbulletin->options['sd_enabled'])
{
$candecimate = false;
$modgroups = explode(",", $vbulletin->options['modgroupid']);
$supergroups = explode(",", $vbulletin->options['supermodid']);
$admingroups = explode(",", $vbulletin->options['adminid']);
$decimators = array_merge($admingroups,$modgroups,$supergroups);
if(!in_array($post['usergroupid'], $decimators))
{
if(in_array($vbulletin->userinfo['usergroupid'], $decimators))
{
if($vbulletin->options['sd_postmax'] == '0')
{
$candecimate = true;
}
else
{
if($post['posts'] < $vbulletin->options['sd_postmax'])
{
$candecimate = true;
}
}
}
}
}
else
{
$candecimate = false;
}
and then in decimator.php find this:
PHP Code:
if($spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
{
$error = "Spammer has more than " . $vbulletin->options['sd_postmax'] .
" posts and cannot be decimated!";
}
and change to this:
PHP Code:
if($vbulletin->options['sd_postmax'] > '0')
{
if($spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
{
$error = "Spammer has more than " . $vbulletin->options['sd_postmax'] .
" posts and cannot be decimated!";
}
}
Hope this helps others.