comparison src/dialogs.c @ 237:6ced2f1c8b24

[gaim-migrate @ 247] How cool is this, libfaim is making a comeback. I completely redid everything, as was necessary because of the updates to libfaim since gaim 0.9.7. You can sign on and send/recv IMs, but there's a bad lag between display updates that I haven't figured out how to fix yet. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 20 May 2000 00:30:53 +0000
parents 62d470738cc7
children fbf1d60668d1
comparison
equal deleted inserted replaced
236:62d470738cc7 237:6ced2f1c8b24
1083 if ((strlen(orig) < 1) || (strlen(new1) < 1) || (strlen(new2) < 1)) { 1083 if ((strlen(orig) < 1) || (strlen(new1) < 1) || (strlen(new2) < 1)) {
1084 do_error_dialog("Fill out all fields completely", "Gaim - Change Password Error"); 1084 do_error_dialog("Fill out all fields completely", "Gaim - Change Password Error");
1085 return; 1085 return;
1086 } 1086 }
1087 1087
1088 buf = g_malloc(BUF_LONG); 1088 serv_change_passwd(orig, new1);
1089 g_snprintf(buf, BUF_LONG, "toc_change_passwd %s %s", orig, new1);
1090 sflap_send(buf, strlen(buf), TYPE_DATA);
1091 g_free(buf);
1092 1089
1093 destroy_dialog(NULL, b->window); 1090 destroy_dialog(NULL, b->window);
1094 g_free(b); 1091 g_free(b);
1095 } 1092 }
1096 1093
2096 sprintf( path, "%s/.gaimbdcache_%s", file, g_screenname ); 2093 sprintf( path, "%s/.gaimbdcache_%s", file, g_screenname );
2097 else 2094 else
2098 return; 2095 return;
2099 } 2096 }
2100 if ((f = fopen(path,"w"))) { 2097 if ((f = fopen(path,"w"))) {
2101 toc_build_config(buf, 8192 - 1); 2098 serv_build_config(buf, 8192 - 1);
2102 fprintf(f, "%s\n", buf); 2099 fprintf(f, "%s\n", buf);
2103 fclose(f); 2100 fclose(f);
2104 chmod(buf, S_IRUSR | S_IWUSR); 2101 chmod(buf, S_IRUSR | S_IWUSR);
2105 } else if ( show_dialog == 1 ) { 2102 } else if ( show_dialog == 1 ) {
2106 g_snprintf(buf, BUF_LONG / 2, "Error writing file %s", file); 2103 g_snprintf(buf, BUF_LONG / 2, "Error writing file %s", file);