1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Move plugin config add on load

This commit is contained in:
James Booth 2016-06-30 23:16:49 +01:00
parent ef6bad483e
commit 0cd1b50122
2 changed files with 1 additions and 1 deletions

View File

@ -6032,7 +6032,6 @@ cmd_plugins(ProfWin *window, const char *const command, gchar **args)
} }
gboolean res = plugins_load(args[1]); gboolean res = plugins_load(args[1]);
if (res) { if (res) {
prefs_add_plugin(args[1]);
cons_show("Loaded plugin: %s", args[1]); cons_show("Loaded plugin: %s", args[1]);
} else { } else {
cons_show("Failed to load plugin: %s", args[1]); cons_show("Failed to load plugin: %s", args[1]);

View File

@ -165,6 +165,7 @@ plugins_load(const char *const name)
plugin->init_func(plugin, PACKAGE_VERSION, PACKAGE_STATUS, NULL, NULL); plugin->init_func(plugin, PACKAGE_VERSION, PACKAGE_STATUS, NULL, NULL);
} }
log_info("Loaded plugin: %s", name); log_info("Loaded plugin: %s", name);
prefs_add_plugin(args[1]);
return TRUE; return TRUE;
} else { } else {
log_info("Failed to load plugin: %s", name); log_info("Failed to load plugin: %s", name);