comparison src/server.c @ 3606:33643170bfde

[gaim-migrate @ 3719] a bugfix committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 08 Oct 2002 21:12:53 +0000
parents 81d514f109de
children 851f421a0f8e
comparison
equal deleted inserted replaced
3605:1066e65b1a18 3606:33643170bfde
42 42
43 void serv_login(struct aim_user *user) 43 void serv_login(struct aim_user *user)
44 { 44 {
45 struct prpl *p = find_prpl(user->protocol); 45 struct prpl *p = find_prpl(user->protocol);
46 46
47 if (user->gc != NULL) 47 if (user->gc != NULL || p == NULL)
48 return; 48 return;
49 49
50 #ifdef GAIM_PLUGINS 50 #ifdef GAIM_PLUGINS
51 if (p->plug) { /* This protocol is a plugin */ 51 if (p->plug) { /* This protocol is a plugin */
52 prpl_accounts[p->protocol]++; 52 prpl_accounts[p->protocol]++;
57 return; 57 return;
58 } 58 }
59 } 59 }
60 #endif 60 #endif
61 61
62 if (p && p->login) { 62 if (p->login) {
63 if (!strlen(user->password) && !(p->options & OPT_PROTO_NO_PASSWORD)) { 63 if (!strlen(user->password) && !(p->options & OPT_PROTO_NO_PASSWORD)) {
64 do_error_dialog(_("Please enter your password"), NULL, GAIM_ERROR); 64 do_error_dialog(_("Please enter your password"), NULL, GAIM_ERROR);
65 return; 65 return;
66 } 66 }
67 67