summaryrefslogtreecommitdiff
path: root/modules/extra/sqlite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/sqlite.cpp')
-rw-r--r--modules/extra/sqlite.cpp3
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);