Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/server.c Thu Oct 18 00:30:34 2001 +0000 +++ b/src/server.c Thu Oct 18 00:44:43 2001 +0000 @@ -44,9 +44,16 @@ void serv_login(struct aim_user *user) { struct prpl *p = find_prpl(user->protocol); + if (user->gc != NULL) return; + if (p && p->login) { + if (!strlen(user->password) && !(p->options & OPT_PROTO_NO_PASSWORD)) { + do_error_dialog(_("Please enter your password"), _("Signon Error")); + return; + } + debug_printf("Logging in using %s\n", (*p->name)()); (*p->login)(user); } else {