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

Move prefs_remove_plugin to plugins_unload

This commit is contained in:
James Booth 2016-07-04 23:00:41 +01:00
parent c8d09083a8
commit 03c7ac73fd
2 changed files with 3 additions and 2 deletions

View File

@ -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]);

View File

@ -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*