diff options
author | Sadie Powell <sadie@witchery.services> | 2020-04-09 15:18:04 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-04-09 15:18:04 +0100 |
commit | bb39d78be61e45555cdd87985e26ea07b725fabf (patch) | |
tree | 157dc8144dca9d65eec162773fe3f845e6a5582f /src/modules/extra/m_geo_maxmind.cpp | |
parent | 52a433cfccad8559ff7d12f7ea308d8f4570444f (diff) |
Set the minimum length to 1 for most config items with a default.
Diffstat (limited to 'src/modules/extra/m_geo_maxmind.cpp')
-rw-r--r-- | src/modules/extra/m_geo_maxmind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_geo_maxmind.cpp b/src/modules/extra/m_geo_maxmind.cpp index 0cf082775..984a2c6cb 100644 --- a/src/modules/extra/m_geo_maxmind.cpp +++ b/src/modules/extra/m_geo_maxmind.cpp @@ -160,7 +160,7 @@ class ModuleGeoMaxMind : public Module void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { ConfigTag* tag = ServerInstance->Config->ConfValue("maxmind"); - const std::string file = ServerInstance->Config->Paths.PrependConfig(tag->getString("file", "GeoLite2-Country.mmdb")); + const std::string file = ServerInstance->Config->Paths.PrependConfig(tag->getString("file", "GeoLite2-Country.mmdb", 1)); // Try to read the new database. MMDB_s mmdb; |