diff options
Diffstat (limited to 'modules/database/db_json.cpp')
-rw-r--r-- | modules/database/db_json.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/database/db_json.cpp b/modules/database/db_json.cpp index e1523c31d..9796ea7f3 100644 --- a/modules/database/db_json.cpp +++ b/modules/database/db_json.cpp @@ -155,15 +155,14 @@ private: if (mod) { // We are reading the name of a module database. - filename = Config->GetModule(this) - .Get<Anope::string>("module_database", "{name}.module.json") - .replace_all_cs("{name}", mod->name); + filename = Anope::Template(Config->GetModule(this).Get<Anope::string>("module_database", "{name}.module.json"), { + { "name", mod->name }, + }); } else { // We are reading a the name of the core database. - filename = Config->GetModule(this) - .Get<Anope::string>("database", "anope.json"); + filename = Config->GetModule(this).Get<Anope::string>("database", "anope.json"); } return Anope::ExpandData(filename); |