about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-06-30 23:16:49 +0100
committerJames Booth <boothj5@gmail.com>2016-06-30 23:16:54 +0100
commit0cd1b50122294ac5a5d967d934eea82aec2874f1 (patch)
treef0f12669b71bda269b8ae58854ad2c63998f54c9 /src
parentef6bad483eef8f83393623127e1a27a46fa8b221 (diff)
downloadprofani-tty-0cd1b50122294ac5a5d967d934eea82aec2874f1.tar.gz
Move plugin config add on load
Diffstat (limited to 'src')
-rw-r--r--src/command/cmd_funcs.c1
-rw-r--r--src/plugins/plugins.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index b935f13d..40944874 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -6032,7 +6032,6 @@ cmd_plugins(ProfWin *window, const char *const command, gchar **args)
         }
         gboolean res = plugins_load(args[1]);
         if (res) {
-            prefs_add_plugin(args[1]);
             cons_show("Loaded plugin: %s", args[1]);
         } else {
             cons_show("Failed to load plugin: %s", args[1]);
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c
index 707ca497..ac8e33c6 100644
--- a/src/plugins/plugins.c
+++ b/src/plugins/plugins.c
@@ -165,6 +165,7 @@ plugins_load(const char *const name)
             plugin->init_func(plugin, PACKAGE_VERSION, PACKAGE_STATUS, NULL, NULL);
         }
         log_info("Loaded plugin: %s", name);
+        prefs_add_plugin(args[1]);
         return TRUE;
     } else {
         log_info("Failed to load plugin: %s", name);