about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-07-04 23:00:41 +0100
committerJames Booth <boothj5@gmail.com>2016-07-04 23:00:41 +0100
commit03c7ac73fd903a6c48658fd3c5e270d35f5a80c2 (patch)
tree1855010b3135784d5c5a35b33d93bca3ba9f31a4 /src
parentc8d09083a805c4ea40a9d76ac2199d1b939cd024 (diff)
downloadprofani-tty-03c7ac73fd903a6c48658fd3c5e270d35f5a80c2.tar.gz
Move prefs_remove_plugin to plugins_unload
Diffstat (limited to 'src')
-rw-r--r--src/command/cmd_funcs.c1
-rw-r--r--src/plugins/plugins.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 9b7c36a8..540773d7 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -6045,7 +6045,6 @@ cmd_plugins(ProfWin *window, const char *const command, gchar **args)
         }
         gboolean res = plugins_unload(args[1]);
         if (res) {
-            prefs_remove_plugin(args[1]);
             cons_show("Unloaded plugin: %s", args[1]);
         } else {
             cons_show("Failed to unload plugin: %s", args[1]);
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c
index dfa8e763..ae0e65b0 100644
--- a/src/plugins/plugins.c
+++ b/src/plugins/plugins.c
@@ -168,7 +168,9 @@ plugins_load(const char *const name)
 gboolean
 plugins_unload(const char *const name)
 {
-    return FALSE;
+    prefs_remove_plugin(name);
+
+    return TRUE;
 }
 
 static gchar*