/plugins unload command and completer

This commit is contained in:
James Booth
2016-06-30 23:14:05 +01:00
parent 56480ce9ea
commit ef6bad483e
7 changed files with 76 additions and 2 deletions

View File

@@ -631,6 +631,13 @@ prefs_add_plugin(const char *const name)
_save_prefs();
}
void
prefs_remove_plugin(const char *const name)
{
conf_string_list_remove(prefs, "plugins", "load", name);
_save_prefs();
}
void
prefs_free_plugins(gchar **plugins)
{

View File

@@ -191,6 +191,7 @@ void prefs_set_autoxa_time(gint value);
gchar** prefs_get_plugins(void);
void prefs_free_plugins(gchar **plugins);
void prefs_add_plugin(const char *const name);
void prefs_remove_plugin(const char *const name);
char prefs_get_otr_char(void);
void prefs_set_otr_char(char ch);