comparison src/main.c @ 9971:ab5db2c5da79

[gaim-migrate @ 10882] Remove the default prpl, patch from datallah Patch from nosnilmot that might make recent buddies work Someone check my get_proto_smileys function. I feel like it could be better committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 08 Sep 2004 02:33:53 +0000
parents e4a27c9aec4c
children 34bce9529cf4
comparison
equal deleted inserted replaced
9970:837dc736e84f 9971:ab5db2c5da79
423 #endif 423 #endif
424 424
425 return 0; 425 return 0;
426 } 426 }
427 427
428 static void set_first_user(char *name) 428 static void set_first_user(const char *name)
429 { 429 {
430 GaimAccount *account; 430 GaimAccount *account;
431 431
432 account = gaim_accounts_find(name, NULL); 432 account = gaim_accounts_find(name, NULL);
433 433
434 if (account == NULL) { /* new user */
435 account = gaim_account_new(name, GAIM_PROTO_DEFAULT);
436 gaim_accounts_add(account);
437 }
438
439 /* Place it as the first user. */ 434 /* Place it as the first user. */
440 gaim_accounts_reorder(account, 0); 435 if (account != NULL)
436 gaim_accounts_reorder(account, 0);
441 } 437 }
442 438
443 static void 439 static void
444 debug_init(void) 440 debug_init(void)
445 { 441 {