comparison src/multi.c @ 3066:3b1dc99ef79e

[gaim-migrate @ 3080] bugfix committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 17 Mar 2002 01:17:12 +0000
parents 4f2f12bf4408
children b695cbbeee2d
comparison
equal deleted inserted replaced
3065:0f8c9cecf75b 3066:3b1dc99ef79e
893 static void acct_signin(GtkWidget *w, gpointer d) 893 static void acct_signin(GtkWidget *w, gpointer d)
894 { 894 {
895 GList *l = GTK_CLIST(list)->selection; 895 GList *l = GTK_CLIST(list)->selection;
896 int row = -1; 896 int row = -1;
897 struct aim_user *u; 897 struct aim_user *u;
898 struct prpl *p = find_prpl(u->protocol);
898 while (l) { 899 while (l) {
899 row = (int)l->data; 900 row = (int)l->data;
900 u = g_slist_nth_data(aim_users, row); 901 u = g_slist_nth_data(aim_users, row);
901 if (!u->gc) { 902 serv_login(u);
903 if (!u->gc && p && p->login) {
902 struct prpl *p = find_prpl(u->protocol); 904 struct prpl *p = find_prpl(u->protocol);
903 if (p && !(p->options & OPT_PROTO_NO_PASSWORD) && !u->password[0]) { 905 if (p && !(p->options & OPT_PROTO_NO_PASSWORD) && !u->password[0]) {
904 do_pass_dlg(u); 906 do_pass_dlg(u);
905 } else { 907 } else {
906 #ifdef USE_APPLET 908 #ifdef USE_APPLET
907 set_user_state(signing_on); 909 set_user_state(signing_on);
908 #endif /* USE_APPLET */ 910 #endif /* USE_APPLET */
909 gtk_clist_set_text(GTK_CLIST(list), row, 1, "Attempting"); 911 gtk_clist_set_text(GTK_CLIST(list), row, 1, "Attempting");
910 serv_login(u);
911 } 912 }
912 } else { 913 } else if (u->gc) {
913 u->gc->wants_to_die = TRUE; 914 u->gc->wants_to_die = TRUE;
914 signoff(u->gc); 915 signoff(u->gc);
915 } 916 }
916 l = l->next; 917 l = l->next;
917 } 918 }