# Begin no double post mod
# Minutes after first reply before we allow a second
# Set to 0 to disable time constraints
my $time_to_allow_spam = 60;
my $allow_staff_bypass = true;
if(
( $last_post[11] eq $user_number ) &&
!( (&is_admin_or_mod($in{f}, @user_profile) eq 'true') && ($allow_staff_bypass == true) )
&& ($in{f} !~ /^(1|3|23)$/i )
)
{
# Last post was made by same account as this user
if( $time_to_allow_spam > 0 )
{
$that_unix = &ConvertPostTimeToUnixEpoch( $last_post[3], $last_post[4] );
if( ($GotTime{CurrentEpoch} - ($time_to_allow_spam * 60)) < $that_unix )
{
&StandardHTML("I'm sorry, but you cannot make another post without someone replying first, or until $time_to_allow_spam minutes have passed");
}
}
else
{
&StandardHTML("I'm sorry, but you cannot make another post without someone replying first.");
}
}
# End no double post mod