summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common.h2
-rw-r--r--src/core/settings.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index d10c3d58..10d4cc6e 100644
--- a/src/common.h
+++ b/src/common.h
@@ -6,6 +6,8 @@
#define IRSSI_DIR_SHORT "~/.irssi"
#define IRSSI_DIR_FULL "%s/.irssi" /* %s == g_get_home_dir() */
+
+#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */
#ifdef HAVE_CONFIG_H
diff --git a/src/core/settings.c b/src/core/settings.c
index 1a98462a..d99757e0 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -467,7 +467,7 @@ static CONFIG_REC *parse_configfile(const char *fname)
else {
/* user configuration file not found, use the default one
from sysconfdir */
- path = SYSCONFDIR"/irssi.conf";
+ path = SYSCONFDIR"/"IRSSI_GLOBAL_CONFIG;
if (stat(path, &statbuf) != 0) {
/* no configuration file in sysconfdir ..
use the build-in configuration */