1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Flood Multiplier for Discourages Users not working

Discussion in 'Resolved Bug Reports' started by tajhay, May 9, 2012.

  1. tajhay

    tajhay Well-Known Member

    Hi,
    We have enabled the flood multiplier on a sample discouraged user (tried different values 10/50/100), and the seconds between messages has been set at 30. However the user is still able to post every 30 seconds.

    Anyone else having this issue?

    The usergroup that the user is on also does NOT have the 'overide flood' feature to be active.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Confirmed in 1.1.2

    Code fix for devs:

    XenForo_ControllerPublic_Abstract

    Replace:

    Code:
    		// increase flood check time
    		if ($options->discourageFloodMultiplier > 1)
    		{
    			$options->set('floodCheckTime', $options->floodCheckTime * $options->discourageFloodMultiplier);
    		}
    
    With:

    Code:
    		// increase flood check time
    		if ($options->discourageFloodMultiplier > 1)
    		{
    			$options->set('floodCheckLength', $options->floodCheckLength * $options->discourageFloodMultiplier);
    		}
    
     
  3. Mike

    Mike XenForo Developer Staff Member

    Fixed, thanks.
     

Share This Page