summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure1
-rw-r--r--src/inspircd.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 8edcdfe08..5a54b286b 100755
--- a/configure
+++ b/configure
@@ -861,6 +861,7 @@ sub writefiles {
#define CoreExport /**/
#define DllExport /**/
+#define CONFIG_PATH "$config{CONFIG_DIR}"
#define MOD_PATH "$config{MODULE_DIR}"
#define SOMAXCONN_S "$config{_SOMAXCONN}"
#define ENTRYPOINT int main(int argc, char** argv)
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index aa03d62de..4abfb496a 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -303,7 +303,7 @@ void InspIRCd::WritePID(const std::string &filename)
}
InspIRCd::InspIRCd(int argc, char** argv) :
- ConfigFileName("conf/inspircd.conf"),
+ ConfigFileName(CONFIG_PATH "/inspircd.conf"),
/* Functor pointer initialisation.
*