comparison src/main.c @ 5943:a4f2aba0848d

[gaim-migrate @ 6384] This should fix corruption in the blist, accounts, and pounces when some protocol plugins cannot load. Some parts of gaim now use the new unique Plugin or Protocol Plugin IDs, while some still use the old protocol numbers. Accounts kind of used both, and when prpls were missing, it had trouble finding accounts. It would find the names, even without mapping the protocol numbers to IDs, and any duplicate accounts would get nuked. That would then affect pounce saving. Anyhow, long story short (well, it's already long, too late for that), this should fix all that mess. And introduce new mess, but hopefully temporary mess. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 23 Jun 2003 02:00:15 +0000
parents 1a7f7feab916
children 90d0849abd3c
comparison
equal deleted inserted replaced
5942:d0320de18feb 5943:a4f2aba0848d
44 #include "gtknotify.h" 44 #include "gtknotify.h"
45 #include "gtkpounce.h" 45 #include "gtkpounce.h"
46 #include "gtkprefs.h" 46 #include "gtkprefs.h"
47 #include "gtkrequest.h" 47 #include "gtkrequest.h"
48 #include "gtksound.h" 48 #include "gtksound.h"
49 #include "gtkutils.h"
49 #include "stock.h" 50 #include "stock.h"
50 51
51 #include "ui.h" 52 #include "ui.h"
52 53
53 #if HAVE_SIGNAL_H 54 #if HAVE_SIGNAL_H
238 * them, they just have to use the account editor to sign in 239 * them, they just have to use the account editor to sign in
239 * the second one */ 240 * the second one */
240 241
241 account = gaim_accounts_find(username, -1); 242 account = gaim_accounts_find(username, -1);
242 if (!account) { 243 if (!account) {
243 account = gaim_account_new(username, GAIM_PROTO_DEFAULT); 244 account = gaim_account_new(username, "prpl-oscar");
244 245
245 gaim_account_set_remember_password(account, TRUE); 246 gaim_account_set_remember_password(account, TRUE);
246 } 247 }
247 248
248 gaim_account_set_password(account, password); 249 gaim_account_set_password(account, password);
550 GaimAccount *account; 551 GaimAccount *account;
551 552
552 account = gaim_accounts_find(name, -1); 553 account = gaim_accounts_find(name, -1);
553 554
554 if (account == NULL) /* new user */ 555 if (account == NULL) /* new user */
555 account = gaim_account_new(name, GAIM_PROTO_DEFAULT); 556 account = gaim_account_new(name, "prpl-oscar");
556 557
557 /* Place it as the first user. */ 558 /* Place it as the first user. */
558 gaim_accounts_reorder(account, 0); 559 gaim_accounts_reorder(account, 0);
559 } 560 }
560 561