# HG changeset patch # User Eric Warmenhoven # Date 959230591 0 # Node ID 07abf2ed6665dcc0c6a21584daefae17c8cba8e0 # Parent aebbe6ca6919874e258d4e799460c08ee4895a79 [gaim-migrate @ 272] Since everyone on sourceforge raised such a stink about having 3 dot-files in ~, I moved .gaimbdcache_ to .gaim/.blist. I hope this makes people happy. committer: Tailor Script diff -r aebbe6ca6919 -r 07abf2ed6665 ChangeLog --- 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_ + * Buddy lists (and changes) are cached to ~/.gaim/.blist where 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 diff -r aebbe6ca6919 -r 07abf2ed6665 src/dialogs.c --- 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; }