diff options
-rw-r--r-- | src/common/servlist.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/servlist.c b/src/common/servlist.c index 6dbc8f6e..e897b7c3 100644 --- a/src/common/servlist.c +++ b/src/common/servlist.c @@ -1046,6 +1046,17 @@ servlist_load (void) int len; char *tmp; ircnet *net = NULL; + +#ifndef G_OS_WIN32 /* simple migration we will keep for a short while */ + char *oldfile = g_build_filename(get_xdir(), "servlist_.conf", NULL); + char *newfile = g_build_filename(get_xdir(), "servlist.conf", NULL); + + if (g_file_test(oldfile, G_FILE_TEST_EXISTS) && !g_file_test(newfile, G_FILE_TEST_EXISTS)) + g_rename (oldfile, newfile); + + g_free (oldfile); + g_free (newfile); +#endif fp = hexchat_fopen_file ("servlist.conf", "r", 0); if (!fp) |