diff options
author | James Booth <boothj5@gmail.com> | 2016-06-29 23:35:57 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-06-29 23:35:57 +0100 |
commit | a01eb5d08e1b39d60a6f8fc26e5a87ceb92ec18f (patch) | |
tree | be77126865e0cb26963859ad384a225e9c993c9e /src/config | |
parent | 61a09476c511c33abd9b6be3d5786fee1fa93b94 (diff) | |
download | profani-tty-a01eb5d08e1b39d60a6f8fc26e5a87ceb92ec18f.tar.gz |
WIP - Unload plugin commands
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 7 | ||||
-rw-r--r-- | src/config/preferences.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 9381d014..636bd33d 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -632,6 +632,13 @@ prefs_add_plugin(const char *const name) } void +prefs_remove_plugin(const char *const name) +{ + conf_string_list_remove(prefs, "plugins", "load", name); + _save_prefs(); +} + +void prefs_free_plugins(gchar **plugins) { g_strfreev(plugins); diff --git a/src/config/preferences.h b/src/config/preferences.h index a7b84dfe..3111f81e 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -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); |