if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost')
{
if (($mode == 'newtopic' || $mode == 'reply')
Erwilwârin wrote: Is this for the 2.0.6 model of the phpBB?
The topic title wrote: Post subject: [2.0.6] No Flood Control For Moderators And Admins
AbelaJohnB wrote: Personal Thoughts:
This MOD will work site-wide. Meaning: It's not "forum specific". I think a nice upgrade to this MOD would be an ACP section that would allow this to apply to specific forum(s).
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
//
// Flood control
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
// No Flood Limit For Administrators & Moderators MOD
if($userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD)
{
#
#-----[ FIND ]------------------------------------------
#
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
} // noflood mod