mirror of
https://github.com/anope/anope.git
synced 2026-06-28 16:56:39 +02:00
Allow using absolute paths in more places.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user