[gaim-migrate @ 1280]

Thu, 14 Dec 2000 13:37:11 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Thu, 14 Dec 2000 13:37:11 +0000
changeset 1270
a3934ab2b306
parent 1269
e2c089b7756e
child 1271
b661693126ac

[gaim-migrate @ 1280]
shit. forgot about this. fuck.

src/dialogs.c file | annotate | diff | comparison | revisions
--- a/src/dialogs.c	Thu Dec 14 13:32:10 2000 +0000
+++ b/src/dialogs.c	Thu Dec 14 13:37:11 2000 +0000
@@ -40,6 +40,7 @@
 #include <gtk/gtk.h>
 #include "gaim.h"
 #include "gtkhtml.h"
+#include "prpl.h"
 
 #include "pixmaps/gnome_preferences.xpm"
 #include "pixmaps/cancel.xpm"
@@ -2767,7 +2768,8 @@
 
 	file = gaim_user_dir();
 	if ( file != (char *) NULL ) {
-		g_snprintf(path, sizeof path, "%s/%s.%d.blist", file, g_screenname, gc->protocol); 
+		g_snprintf(path, sizeof path, "%s/%s.%d.blist", file, g_screenname,
+				(gc->protocol == PROTO_OSCAR) ? PROTO_TOC : gc->protocol);
 		if ( !stat(path, &sbuf) ) {
 			debug_printf("%s exists.\n", path);
 			ret = TRUE;
@@ -2839,7 +2841,8 @@
 				for (i = 0; i < strlen(g->username); i++)
 					g_screenname[i] = toupper(g->username[i]);
 				g_screenname[i] = '\0';
-				sprintf(path, "%s/%s.%d.blist", file, g_screenname, g->protocol);
+				sprintf(path, "%s/%s.%d.blist", file, g_screenname,
+						(g->protocol == PROTO_OSCAR) ? PROTO_TOC : g->protocol);
 				if ((f = fopen(path,"w"))) {
 					debug_printf("writing %s\n", path);
 					toc_build_config(g, buf, 8192 - 1, TRUE);

mercurial