Mercurial > pidgin.yaz
comparison src/pounce.c @ 7132:d17a587efeb3
[gaim-migrate @ 7699]
new blist parser code, and some tweaks to the account code to make my next commit possible. the other parser code can get moved over to this model to make things cleaner, but i'm too lazy to do it now.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 03 Oct 2003 21:49:11 +0000 |
parents | bf630f7dfdcd |
children | 1930e3d00ecd |
comparison
equal
deleted
inserted
replaced
7131:af889fd531d0 | 7132:d17a587efeb3 |
---|---|
584 | 584 |
585 g_free(data->param_name); | 585 g_free(data->param_name); |
586 data->param_name = NULL; | 586 data->param_name = NULL; |
587 } | 587 } |
588 else if (!strcmp(element_name, "events")) { | 588 else if (!strcmp(element_name, "events")) { |
589 GList *l; | |
590 GaimAccount *account; | 589 GaimAccount *account; |
591 GaimProtocol protocol = -1; | 590 |
592 | 591 account = gaim_accounts_find(data->account_name, data->protocol_id); |
593 for (l = gaim_plugins_get_protocols(); l != NULL; l = l->next) { | |
594 GaimPlugin *plugin = (GaimPlugin *)l->data; | |
595 | |
596 if (GAIM_IS_PROTOCOL_PLUGIN(plugin)) { | |
597 if (!strcmp(plugin->info->id, data->protocol_id)) { | |
598 protocol = GAIM_PLUGIN_PROTOCOL_INFO(plugin)->protocol; | |
599 | |
600 break; | |
601 } | |
602 } | |
603 } | |
604 | |
605 account = gaim_accounts_find(data->account_name, protocol); | |
606 | 592 |
607 g_free(data->account_name); | 593 g_free(data->account_name); |
608 g_free(data->protocol_id); | 594 g_free(data->protocol_id); |
609 | 595 |
610 data->account_name = NULL; | 596 data->account_name = NULL; |