summaryrefslogtreecommitdiff
path: root/modules/database/db_atheme.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-19 15:10:25 +0000
committerSadie Powell <sadie@witchery.services>2024-03-19 15:11:40 +0000
commitfde3438ef29447f41a6eb48049f8d620c1c2eb30 (patch)
treefcd2f03a9d5b693106ab545d3ffd08934149aee2 /modules/database/db_atheme.cpp
parent1575dea5b96e7249d94ebc9214a73d123919c4ba (diff)
Allow using absolute paths in more places.
Diffstat (limited to 'modules/database/db_atheme.cpp')
-rw-r--r--modules/database/db_atheme.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/database/db_atheme.cpp b/modules/database/db_atheme.cpp
index ca53e955b..60870f7a7 100644
--- a/modules/database/db_atheme.cpp
+++ b/modules/database/db_atheme.cpp
@@ -1290,7 +1290,7 @@ public:
EventReturn OnLoadDatabase() override
{
- const auto dbname = Anope::DataDir + "/" + Config->GetModule(this)->Get<const Anope::string>("database", "atheme.db");
+ const auto dbname = Anope::ExpandData(Config->GetModule(this)->Get<const Anope::string>("database", "atheme.db"));
std::ifstream fd(dbname.str());
if (!fd.is_open())
{