Mercurial > pidgin
comparison src/multi.c @ 3069:cbb8b9b4ca4a
[gaim-migrate @ 3083]
But I say it just to reach you.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sun, 17 Mar 2002 04:58:38 +0000 |
| parents | b695cbbeee2d |
| children | 793fb2e9d53b |
comparison
equal
deleted
inserted
replaced
| 3068:1b64206cfbdc | 3069:cbb8b9b4ca4a |
|---|---|
| 894 static void acct_signin(GtkWidget *w, gpointer d) | 894 static void acct_signin(GtkWidget *w, gpointer d) |
| 895 { | 895 { |
| 896 GList *l = GTK_CLIST(list)->selection; | 896 GList *l = GTK_CLIST(list)->selection; |
| 897 int row = -1; | 897 int row = -1; |
| 898 struct aim_user *u = NULL; | 898 struct aim_user *u = NULL; |
| 899 struct prpl *p = find_prpl(u->protocol); | 899 struct prpl *p = NULL; |
| 900 while (l) { | 900 while (l) { |
| 901 row = (int)l->data; | 901 row = (int)l->data; |
| 902 u = g_slist_nth_data(aim_users, row); | 902 u = g_slist_nth_data(aim_users, row); |
| 903 serv_login(u); | 903 p = find_prpl(u->protocol); |
| 904 if (!u->gc && p && p->login) { | 904 if (!u->gc && p && p->login) { |
| 905 struct prpl *p = find_prpl(u->protocol); | 905 struct prpl *p = find_prpl(u->protocol); |
| 906 if (p && !(p->options & OPT_PROTO_NO_PASSWORD) && !u->password[0]) { | 906 if (p && !(p->options & OPT_PROTO_NO_PASSWORD) && !u->password[0]) { |
| 907 do_pass_dlg(u); | 907 do_pass_dlg(u); |
| 908 } else { | 908 } else { |
| 909 serv_login(u); | |
| 909 #ifdef USE_APPLET | 910 #ifdef USE_APPLET |
| 910 set_user_state(signing_on); | 911 set_user_state(signing_on); |
| 911 #endif /* USE_APPLET */ | 912 #endif /* USE_APPLET */ |
| 912 gtk_clist_set_text(GTK_CLIST(list), row, 1, "Attempting"); | 913 gtk_clist_set_text(GTK_CLIST(list), row, 1, "Attempting"); |
| 913 } | 914 } |
| 914 } else if (u->gc) { | 915 } else if (u->gc) { |
| 915 u->gc->wants_to_die = TRUE; | 916 u->gc->wants_to_die = TRUE; |
| 916 signoff(u->gc); | 917 signoff(u->gc); |
| 918 } else { | |
| 919 do_error_dialog(_("You cannot log this account in; you do not have " | |
| 920 "the protocol it uses loaded, or the protocol does " | |
| 921 "not have a login function."), _("Login Error")); | |
| 917 } | 922 } |
| 918 l = l->next; | 923 l = l->next; |
| 919 } | 924 } |
| 920 } | 925 } |
| 921 | 926 |
