Mercurial > pidgin.yaz
changeset 262:07abf2ed6665
[gaim-migrate @ 272]
Since everyone on sourceforge raised such a stink about having 3 dot-files
in ~, I moved .gaimbdcache_<SN> to .gaim/<SN>.blist. I hope this makes
people happy.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 25 May 2000 04:56:31 +0000 |
parents | aebbe6ca6919 |
children | 8aa7368baae7 |
files | ChangeLog src/dialogs.c |
diffstat | 2 files changed, 15 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu May 25 04:15:46 2000 +0000 +++ b/ChangeLog Thu May 25 04:56:31 2000 +0000 @@ -2,7 +2,7 @@ version 0.9.16: * Paned buddy chat window (Thanks Syd) - * Buddy lists (and changes) are cached to ~/.gaimbdcache_<sn> + * Buddy lists (and changes) are cached to ~/.gaim/<sn>.blist where <sn> is your screen name. If for some reason, you log into the AOL server and the buddy list comes back empty, we check for a cache file, and, if we find one, read it in. This
--- a/src/dialogs.c Thu May 25 04:15:46 2000 +0000 +++ b/src/dialogs.c Thu May 25 04:56:31 2000 +0000 @@ -2057,14 +2057,14 @@ file = getenv( "HOME" ); if ( file != (char *) NULL ) { - sprintf( path, "%s/.gaimbdcache_%s", file, g_screenname ); + sprintf( path, "%s/.gaim/%s.blist", file, g_screenname ); if ( !stat(path, &sbuf) ) ret = TRUE; } return ret; } -/* if dummy is 0, save to ~/.gaimbdcache_screenname. Else, let user choose */ +/* if dummy is 0, save to ~/.gaim/screenname.blist. Else, let user choose */ void do_export(GtkWidget *w, void *dummy) { @@ -2081,9 +2081,16 @@ } else { file = getenv( "HOME" ); - if ( file != (char *) NULL ) - sprintf( path, "%s/.gaimbdcache_%s", file, g_screenname ); - else + if ( file != (char *) NULL ) { + FILE *dir; + sprintf(buf, "%s/.gaim/"); + dir = fopen(buf, "r"); + if (!dir) + mkdir(buf, S_IRUSR | S_IWUSR | S_IXUSR); + else + fclose(dir); + sprintf( path, "%s/.gaim/%s.blist", file, g_screenname ); + } else return; } if ((f = fopen(path,"w"))) { @@ -2134,7 +2141,7 @@ } -/* if dummy is 0, then import from ~/.gaimbdcache_screenname, else let user +/* if dummy is 0, then import from ~/.gaim/screenname.blist, else let user choose */ void do_import(GtkWidget *w, void *dummy) @@ -2156,7 +2163,7 @@ else { file = getenv( "HOME" ); if ( file != (char *) NULL ) - sprintf( path, "%s/.gaimbdcache_%s", file, g_screenname ); + sprintf( path, "%s/.gaim/%s.blist", file, g_screenname ); else return; }