console/gntplugin.c

changeset 15357
590859c5ee92
parent 15103
f7ead2783393
--- a/console/gntplugin.c	Mon Jan 08 04:04:16 2007 +0000
+++ b/console/gntplugin.c	Mon Jan 08 04:26:16 2007 +0000
@@ -88,22 +88,7 @@
 void
 gg_plugins_save_loaded(void)
 {
-	GList *pl;
-	GList *files = NULL;
-	GaimPlugin *p;
-
-	for (pl = gaim_plugins_get_loaded(); pl != NULL; pl = pl->next) {
-		p = pl->data;
-
-		if (p->info->type != GAIM_PLUGIN_PROTOCOL &&
-			p->info->type != GAIM_PLUGIN_LOADER) {
-
-			files = g_list_append(files, p->path);
-		}
-	}
-
-	gaim_prefs_set_string_list("/gaim/gnt/plugins/loaded", files);
-	g_list_free(files);
+	gaim_plugins_save_loaded("/gaim/gnt/plugins/loaded");
 }
 
 static void

mercurial