Mercurial > pidgin.yaz
comparison src/dialogs.c @ 1270:babea41afa7e
[gaim-migrate @ 1280]
shit. forgot about this. fuck.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 14 Dec 2000 13:37:11 +0000 |
parents | 9cff8ff01d37 |
children | 7448bc1cc7fd |
comparison
equal
deleted
inserted
replaced
1269:677e2c9e8baf | 1270:babea41afa7e |
---|---|
38 #include <arpa/inet.h> | 38 #include <arpa/inet.h> |
39 | 39 |
40 #include <gtk/gtk.h> | 40 #include <gtk/gtk.h> |
41 #include "gaim.h" | 41 #include "gaim.h" |
42 #include "gtkhtml.h" | 42 #include "gtkhtml.h" |
43 #include "prpl.h" | |
43 | 44 |
44 #include "pixmaps/gnome_preferences.xpm" | 45 #include "pixmaps/gnome_preferences.xpm" |
45 #include "pixmaps/cancel.xpm" | 46 #include "pixmaps/cancel.xpm" |
46 #include "pixmaps/save.xpm" | 47 #include "pixmaps/save.xpm" |
47 #include "pixmaps/ok.xpm" | 48 #include "pixmaps/ok.xpm" |
2765 g_screenname[i] = toupper(gc->username[i]); | 2766 g_screenname[i] = toupper(gc->username[i]); |
2766 g_screenname[i] = '\0'; | 2767 g_screenname[i] = '\0'; |
2767 | 2768 |
2768 file = gaim_user_dir(); | 2769 file = gaim_user_dir(); |
2769 if ( file != (char *) NULL ) { | 2770 if ( file != (char *) NULL ) { |
2770 g_snprintf(path, sizeof path, "%s/%s.%d.blist", file, g_screenname, gc->protocol); | 2771 g_snprintf(path, sizeof path, "%s/%s.%d.blist", file, g_screenname, |
2772 (gc->protocol == PROTO_OSCAR) ? PROTO_TOC : gc->protocol); | |
2771 if ( !stat(path, &sbuf) ) { | 2773 if ( !stat(path, &sbuf) ) { |
2772 debug_printf("%s exists.\n", path); | 2774 debug_printf("%s exists.\n", path); |
2773 ret = TRUE; | 2775 ret = TRUE; |
2774 } else { | 2776 } else { |
2775 char path2[PATHSIZE]; | 2777 char path2[PATHSIZE]; |
2837 g = (struct gaim_connection *)c->data; | 2839 g = (struct gaim_connection *)c->data; |
2838 | 2840 |
2839 for (i = 0; i < strlen(g->username); i++) | 2841 for (i = 0; i < strlen(g->username); i++) |
2840 g_screenname[i] = toupper(g->username[i]); | 2842 g_screenname[i] = toupper(g->username[i]); |
2841 g_screenname[i] = '\0'; | 2843 g_screenname[i] = '\0'; |
2842 sprintf(path, "%s/%s.%d.blist", file, g_screenname, g->protocol); | 2844 sprintf(path, "%s/%s.%d.blist", file, g_screenname, |
2845 (g->protocol == PROTO_OSCAR) ? PROTO_TOC : g->protocol); | |
2843 if ((f = fopen(path,"w"))) { | 2846 if ((f = fopen(path,"w"))) { |
2844 debug_printf("writing %s\n", path); | 2847 debug_printf("writing %s\n", path); |
2845 toc_build_config(g, buf, 8192 - 1, TRUE); | 2848 toc_build_config(g, buf, 8192 - 1, TRUE); |
2846 fprintf(f, "%s\n", buf); | 2849 fprintf(f, "%s\n", buf); |
2847 fclose(f); | 2850 fclose(f); |