Mercurial > pidgin
comparison src/aim.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 | a83b4a5ffcd6 |
children | 5639484fccc9 |
comparison
equal
deleted
inserted
replaced
2530:f909dc7dbb43 | 2531:93b50fa8f410 |
---|---|
139 if (!strlen(username)) { | 139 if (!strlen(username)) { |
140 do_error_dialog(_("Please enter your logon"), _("Signon Error")); | 140 do_error_dialog(_("Please enter your logon"), _("Signon Error")); |
141 return; | 141 return; |
142 } | 142 } |
143 | 143 |
144 if (!strlen(password)) { | 144 /* if there is more than one user of the same name, then fuck |
145 do_error_dialog(_("Please enter your password"), _("Signon Error")); | 145 * them, they just have to use the account editor to sign in |
146 return; | 146 * the second one */ |
147 } | 147 |
148 | |
149 /* if there is more than one user of the same name, then fuck them, they just have | |
150 * to use the account editor to sign in the second one */ | |
151 u = find_user(username, -1); | 148 u = find_user(username, -1); |
152 if (!u) | 149 if (!u) |
153 u = new_user(username, DEFAULT_PROTO, OPT_USR_REM_PASS); | 150 u = new_user(username, DEFAULT_PROTO, OPT_USR_REM_PASS); |
154 g_snprintf(u->password, sizeof u->password, "%s", password); | 151 g_snprintf(u->password, sizeof u->password, "%s", password); |
155 save_prefs(); | 152 save_prefs(); |