comparison src/account.c @ 7261:1930e3d00ecd

[gaim-migrate @ 7838] prpl-specific normalize is back, after my crusade to kill it. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 14 Oct 2003 05:07:39 +0000
parents e6b01bd8d6cd
children 412163e23000
comparison
equal deleted inserted replaced
7260:49839c4cbb1c 7261:1930e3d00ecd
1524 GList *l; 1524 GList *l;
1525 char *who; 1525 char *who;
1526 1526
1527 g_return_val_if_fail(name != NULL, NULL); 1527 g_return_val_if_fail(name != NULL, NULL);
1528 1528
1529 who = g_strdup(gaim_normalize(name)); 1529 who = g_strdup(gaim_normalize(NULL, name));
1530 1530
1531 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) { 1531 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) {
1532 account = (GaimAccount *)l->data; 1532 account = (GaimAccount *)l->data;
1533 1533
1534 if (!strcmp(gaim_normalize(gaim_account_get_username(account)), who)) { 1534 if (!strcmp(gaim_normalize(NULL, gaim_account_get_username(account)), who)) {
1535 if (protocol != -1) { 1535 if (protocol != -1) {
1536 if (gaim_account_get_protocol(account) == protocol) 1536 if (gaim_account_get_protocol(account) == protocol)
1537 break; 1537 break;
1538 } 1538 }
1539 else 1539 else
1555 GList *l; 1555 GList *l;
1556 char *who; 1556 char *who;
1557 1557
1558 g_return_val_if_fail(name != NULL, NULL); 1558 g_return_val_if_fail(name != NULL, NULL);
1559 1559
1560 who = g_strdup(gaim_normalize(name)); 1560 who = g_strdup(gaim_normalize(NULL, name));
1561 1561
1562 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) { 1562 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) {
1563 account = (GaimAccount *)l->data; 1563 account = (GaimAccount *)l->data;
1564 1564
1565 if (!strcmp(gaim_normalize(gaim_account_get_username(account)), who) && 1565 if (!strcmp(gaim_normalize(NULL, gaim_account_get_username(account)), who) &&
1566 (!protocol_id || !strcmp(account->protocol_id, protocol_id))) { 1566 (!protocol_id || !strcmp(account->protocol_id, protocol_id))) {
1567 1567
1568 break; 1568 break;
1569 } 1569 }
1570 1570