From e0aef66ce2f2058f1e74d1d6d3daec592e9fce51 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Wed, 24 Jun 2020 11:32:58 +0200 Subject: [PATCH] plugins: make the autoclean plugin static The autocleaning will only happen if the autocleaninvoice-cycle startup option is passed, which cannot happen if the plugin is started post-startup. Thus, it's less misleading for users to restrict its usage to startup. Changelog-Added: plugins: The `autoclean` plugin is now static (you cannot manage it with the `plugin` RPC command anymore). Signed-off-by: Antoine Poinsot --- plugins/autoclean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autoclean.c b/plugins/autoclean.c index 01ef4257c..acdab496e 100644 --- a/plugins/autoclean.c +++ b/plugins/autoclean.c @@ -88,7 +88,7 @@ static const struct plugin_command commands[] = { { int main(int argc, char *argv[]) { setup_locale(); - plugin_main(argv, init, PLUGIN_RESTARTABLE, NULL, commands, ARRAY_SIZE(commands), + plugin_main(argv, init, PLUGIN_STATIC, NULL, commands, ARRAY_SIZE(commands), NULL, 0, NULL, 0, plugin_option("autocleaninvoice-cycle", "string",