| 519 | } |
| 520 | |
| 521 | static char *opt_clear_plugins(struct lightningd *ld) |
| 522 | { |
| 523 | clear_plugins(ld->plugins); |
| 524 | |
| 525 | /* Remove from configvars too! */ |
| 526 | for (size_t i = 0; i < tal_count(ld->configvars); i++) { |
| 527 | if (streq(ld->configvars[i]->optvar, "plugin") |
| 528 | || streq(ld->configvars[i]->optvar, "plugin-dir")) |
| 529 | ld->configvars[i]->overridden = true; |
| 530 | } |
| 531 | return NULL; |
| 532 | } |
| 533 | |
| 534 | static char *opt_important_plugin(const char *arg, struct lightningd *ld) |
| 535 | { |
nothing calls this directly
no test coverage detected