Allow unloading all plugins
This commit is contained in:
@@ -2047,13 +2047,18 @@ static struct cmd_t command_defs[] =
|
||||
|
||||
{ "/plugins",
|
||||
parse_args, 0, 2, NULL,
|
||||
CMD_NOSUBFUNCS
|
||||
CMD_SUBFUNCS(
|
||||
{ "install", cmd_plugins_install },
|
||||
{ "load", cmd_plugins_load },
|
||||
{ "unload", cmd_plugins_unload },
|
||||
{ "reload", cmd_plugins_reload },
|
||||
{ "python_version", cmd_plugins_python_version })
|
||||
CMD_MAINFUNC(cmd_plugins)
|
||||
CMD_NOTAGS
|
||||
CMD_SYN(
|
||||
"/plugins",
|
||||
"/plugins install <path>",
|
||||
"/plugins unload <plugin>",
|
||||
"/plugins unload [<plugin>]",
|
||||
"/plugins load <plugin>",
|
||||
"/plugins reload [<plugin>]",
|
||||
"/plugins python_version")
|
||||
@@ -2062,7 +2067,7 @@ static struct cmd_t command_defs[] =
|
||||
CMD_ARGS(
|
||||
{ "install <file>", "Install file to plugins directory, and load or reload the plugin." },
|
||||
{ "load <plugin>", "Load a plugin that already exists in the plugin directory." },
|
||||
{ "unload <plugin>", "Unload a loaded plugin." },
|
||||
{ "unload [<plugin>]", "Unload a loaded plugin, passing no argument will unload all plugins." },
|
||||
{ "reload [<plugin>]", "Reload a plugin, passing no argument will reload all plugins." },
|
||||
{ "python_version", "Show the Python interpreter version." })
|
||||
CMD_EXAMPLES(
|
||||
|
||||
Reference in New Issue
Block a user