diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-19 15:10:25 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-19 15:11:40 +0000 |
commit | fde3438ef29447f41a6eb48049f8d620c1c2eb30 (patch) | |
tree | fcd2f03a9d5b693106ab545d3ffd08934149aee2 /modules/extra/sqlite.cpp | |
parent | 1575dea5b96e7249d94ebc9214a73d123919c4ba (diff) |
Allow using absolute paths in more places.
Diffstat (limited to 'modules/extra/sqlite.cpp')
-rw-r--r-- | modules/extra/sqlite.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/extra/sqlite.cpp b/modules/extra/sqlite.cpp index 4968e8e0d..2454c838c 100644 --- a/modules/extra/sqlite.cpp +++ b/modules/extra/sqlite.cpp @@ -118,8 +118,7 @@ public: if (this->SQLiteServices.find(connname) == this->SQLiteServices.end()) { - Anope::string database = Anope::DataDir + "/" + block->Get<const Anope::string>("database", "anope"); - + auto database = Anope::ExpandData(block->Get<const Anope::string>("database", "anope")); try { auto *ss = new SQLiteService(this, connname, database); |