Mercurial > pidgin.yaz
diff src/util.c @ 5874:964e4f94fc56
[gaim-migrate @ 6306]
Moved gaim_account_find() from util.[ch] to gaim_accounts_find() in
account.[ch].
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 14 Jun 2003 23:50:24 +0000 |
parents | 059d95c67cda |
children | 124ca6f5e895 |
line wrap: on
line diff
--- a/src/util.c Sat Jun 14 23:25:41 2003 +0000 +++ b/src/util.c Sat Jun 14 23:50:24 2003 +0000 @@ -536,32 +536,6 @@ #endif } -GaimAccount *gaim_account_find(const char *name, int protocol) -{ - char *who = g_strdup(normalize(name)); - GList *accts = gaim_accounts_get_all(); - GaimAccount *account; - - while (accts) { - account = (GaimAccount *)accts->data; - if (!strcmp(normalize(account->username), who)) { - if (protocol != -1) { - if (account->protocol == protocol) { - g_free(who); - return account; - } - } else { - g_free(who); - return account; - } - - } - accts = accts->next; - } - g_free(who); - return NULL; -} - /* Look for %n, %d, or %t in msg, and replace with the sender's name, date, or time */