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.
This commit is contained in:
altffour 2021-01-12 08:26:28 +03:00
commit e53fc95659
No known key found for this signature in database
GPG key ID: B4ADFA86EDF5CCE9

View file

@ -280,7 +280,7 @@ static void check_files(void)
{ {
struct stat statbuf; 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 */ /* irssi config folder doesn't exist, first time running irssi */
display_firsttimer = TRUE; display_firsttimer = TRUE;
} }