Mercurial > pidgin
comparison src/account.c @ 7107:9220c7490cd1
[gaim-migrate @ 7672]
This is a big one: normalize() -> gaim_normalize, linkify_text() ->
gaim_markup_linkify(), gaim_get_size_string() -> gaim_str_size_to_units(),
and moved clean_pid() to main.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 06:17:28 +0000 |
parents | 71e0da45abe6 |
children | bf630f7dfdcd |
comparison
equal
deleted
inserted
replaced
7106:db6bd3e794d8 | 7107:9220c7490cd1 |
---|---|
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(normalize(name)); | 1529 who = g_strdup(gaim_normalize(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(normalize(gaim_account_get_username(account)), who)) { | 1534 if (!strcmp(gaim_normalize(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(normalize(name)); | 1560 who = g_strdup(gaim_normalize(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(normalize(gaim_account_get_username(account)), who) && | 1565 if (!strcmp(gaim_normalize(gaim_account_get_username(account)), who) && |
1566 !strcmp(account->protocol_id, protocol_id)) { | 1566 !strcmp(account->protocol_id, protocol_id)) { |
1567 | 1567 |
1568 break; | 1568 break; |
1569 } | 1569 } |
1570 | 1570 |