comparison src/server.c @ 2531:93b50fa8f410

[gaim-migrate @ 2544] This was kinda annoying. I was trying to sign on to my IRC account from the first screen. Wouldn't let me. It kept bitching about my password being empty. This should fix it. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 18 Oct 2001 00:44:43 +0000
parents 072f253d5939
children d392e9b867e9
comparison
equal deleted inserted replaced
2530:f909dc7dbb43 2531:93b50fa8f410
42 #include "pixmaps/cancel.xpm" 42 #include "pixmaps/cancel.xpm"
43 43
44 void serv_login(struct aim_user *user) 44 void serv_login(struct aim_user *user)
45 { 45 {
46 struct prpl *p = find_prpl(user->protocol); 46 struct prpl *p = find_prpl(user->protocol);
47
47 if (user->gc != NULL) 48 if (user->gc != NULL)
48 return; 49 return;
50
49 if (p && p->login) { 51 if (p && p->login) {
52 if (!strlen(user->password) && !(p->options & OPT_PROTO_NO_PASSWORD)) {
53 do_error_dialog(_("Please enter your password"), _("Signon Error"));
54 return;
55 }
56
50 debug_printf("Logging in using %s\n", (*p->name)()); 57 debug_printf("Logging in using %s\n", (*p->name)());
51 (*p->login)(user); 58 (*p->login)(user);
52 } else { 59 } else {
53 do_error_dialog(_("You cannot log this account in; you do not have " 60 do_error_dialog(_("You cannot log this account in; you do not have "
54 "the protocol it uses loaded, or the protocol does " 61 "the protocol it uses loaded, or the protocol does "