diff console/gntplugin.c @ 15296:7d6bd7a4994f

[gaim-migrate @ 18086] core-ify some code...and someone tell me why my gvim and svn aren't getting along and I have to type out this damn message on the command line committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 08 Jan 2007 04:26:16 +0000
parents 3d87d9b7491c
children
line wrap: on
line diff
--- 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