diff 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
line wrap: on
line diff
--- a/src/pounce.c	Fri Oct 03 21:10:12 2003 +0000
+++ b/src/pounce.c	Fri Oct 03 21:49:11 2003 +0000
@@ -586,23 +586,9 @@
 		data->param_name = NULL;
 	}
 	else if (!strcmp(element_name, "events")) {
-		GList *l;
 		GaimAccount *account;
-		GaimProtocol protocol = -1;
-
-		for (l = gaim_plugins_get_protocols(); l != NULL; l = l->next) {
-			GaimPlugin *plugin = (GaimPlugin *)l->data;
 
-			if (GAIM_IS_PROTOCOL_PLUGIN(plugin)) {
-				if (!strcmp(plugin->info->id, data->protocol_id)) {
-					protocol = GAIM_PLUGIN_PROTOCOL_INFO(plugin)->protocol;
-
-					break;
-				}
-			}
-		}
-
-		account = gaim_accounts_find(data->account_name, protocol);
+		account = gaim_accounts_find(data->account_name, data->protocol_id);
 
 		g_free(data->account_name);
 		g_free(data->protocol_id);