- // Add the default entry. This is inserted last so if the user specifies a
- // wildcard record in the config it will take precedence over this entry.
- newlimits.push_back(ListLimit("*", DEFAULT_LIST_SIZE));
+ // If no default limit has been specified then insert one.
+ if (!seen_default)
+ {
+ ServerInstance->Logs->Log("MODE", LOG_DEBUG, "No default <maxlist> entry was found for the %s mode; defaulting to %u",
+ name.c_str(), DEFAULT_LIST_SIZE);
+ newlimits.push_back(ListLimit("*", DEFAULT_LIST_SIZE));
+ }