1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Theme saving to home dir didn't work correctly if globaldir already had

the same theme.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@994 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-17 00:04:51 +00:00 committed by cras
parent fbad9ef2ba
commit eafb6fe82f

View File

@ -881,7 +881,7 @@ static void theme_save(THEME_REC *theme)
g_basename(theme->path));
str = strrchr(path, '/');
if (strncmp(theme->path, path, (int) (path-str)) == 0 ||
config_write(config, str, 0660) == -1)
config_write(config, path, 0660) == -1)
ok = FALSE;
}
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,