Added /plugins load command

This commit is contained in:
James Booth
2016-04-10 01:15:11 +01:00
parent 21aa08fdb1
commit 03ab8baf4d
8 changed files with 176 additions and 41 deletions

View File

@@ -604,6 +604,13 @@ prefs_get_plugins(void)
return g_key_file_get_string_list(prefs, "plugins", "load", NULL, NULL);
}
void
prefs_add_plugin(const char *const name)
{
conf_string_list_add(prefs, "plugins", "load", name);
_save_prefs();
}
void
prefs_free_plugins(gchar **plugins)
{