summaryrefslogtreecommitdiff
path: root/src/init.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 /src/init.cpp
parent1575dea5b96e7249d94ebc9214a73d123919c4ba (diff)
Allow using absolute paths in more places.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/init.cpp b/src/init.cpp
index fa7fcff15..7cb136844 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -417,12 +417,9 @@ bool Anope::Init(int ac, char **av)
}
Log(LOG_TERMINAL) << "Anope " << Anope::Version() << ", " << Anope::VersionBuildString();
+ Log(LOG_TERMINAL) << "Using configuration file " << Anope::ExpandConfig(ServicesConf.GetName());
-#ifdef _WIN32
- Log(LOG_TERMINAL) << "Using configuration file " << Anope::ConfigDir << "\\" << ServicesConf.GetName();
-#else
- Log(LOG_TERMINAL) << "Using configuration file " << Anope::ConfigDir << "/" << ServicesConf.GetName();
-
+#ifndef _WIN32
/* Fork to background */
if (!Anope::NoFork)
{