# HG changeset patch # User Rob Flynn # Date 1003365883 0 # Node ID 93b50fa8f410e791a3116b19ce1cc44de8d7b19f # Parent f909dc7dbb438add6465abffcbaa4d58c3a03ecf [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 diff -r f909dc7dbb43 -r 93b50fa8f410 ChangeLog --- a/ChangeLog Thu Oct 18 00:30:34 2001 +0000 +++ b/ChangeLog Thu Oct 18 00:44:43 2001 +0000 @@ -18,6 +18,8 @@ * Redesigned Modify Account window (thanks Sean Egan) * Add buddy dialog now lets you select which protocol to add the buddy to + * Attempting to sign on to accounts, from the main screen, + which do not require a password now functions properly. version 0.45 (10/04/2001): * New plugin event: event_chat_send_invite diff -r f909dc7dbb43 -r 93b50fa8f410 src/aim.c --- a/src/aim.c Thu Oct 18 00:30:34 2001 +0000 +++ b/src/aim.c Thu Oct 18 00:44:43 2001 +0000 @@ -141,13 +141,10 @@ return; } - if (!strlen(password)) { - do_error_dialog(_("Please enter your password"), _("Signon Error")); - return; - } + /* if there is more than one user of the same name, then fuck + * them, they just have to use the account editor to sign in + * the second one */ - /* if there is more than one user of the same name, then fuck them, they just have - * to use the account editor to sign in the second one */ u = find_user(username, -1); if (!u) u = new_user(username, DEFAULT_PROTO, OPT_USR_REM_PASS); diff -r f909dc7dbb43 -r 93b50fa8f410 src/server.c --- 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 {