From e53fc956590797eb8cb162414c2a5bc6d4d6c083 Mon Sep 17 00:00:00 2001 From: altffour Date: Tue, 12 Jan 2021 08:26:28 +0300 Subject: [PATCH] xdg: check for get_irssi_config() for he firsttimer This would solve an edge case where the user would specify the config file and they might not have the config directory, they are marked as firsttimer, which is not correct. --- src/fe-text/irssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 48d30ff7..cd92c267 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -280,7 +280,7 @@ static void check_files(void) { struct stat statbuf; - if (stat(get_irssi_dir(), &statbuf) != 0) { + if (stat(get_irssi_config(), &statbuf) != 0) { /* irssi config folder doesn't exist, first time running irssi */ display_firsttimer = TRUE; }