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:
parent
c8d09083a8
commit
03c7ac73fd
@ -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]);
|
||||
|
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user