*
* @param user Current user.
* @param namespace Name space for the edit.
*/
private void checkTimeForEdit(User user, Integer namespace) {
Configuration config = Configuration.getConfiguration();
int minimumTime = config.getInt(null, ConfigurationValueInteger.TIME_BETWEEN_EDIT);
int maxEdits = 0;
if ((namespace == null) || (namespace.intValue() % 2 == 0)) {
config.getInt(null, ConfigurationValueInteger.MAX_EDITS_PER_MINUTE);
if ((maxEdits > ConfigurationValueInteger.MAX_EDITS_PER_MINUTE_NORMAL) ||
(maxEdits <= 0)) {
if (!user.isMemberOf("admin") &&
!user.isMemberOf("bot")) {
maxEdits = ConfigurationValueInteger.MAX_EDITS_PER_MINUTE_NORMAL;