mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 11:26:21 +00:00
Add /plugins install command
This commit is contained in:
@@ -1979,16 +1979,19 @@ static struct cmd_t command_defs[] =
|
||||
CMD_NOTAGS
|
||||
CMD_SYN(
|
||||
"/plugins",
|
||||
"/plugins install <path>",
|
||||
"/plugins unload <plugin>",
|
||||
"/plugins load <plugin>",
|
||||
"/plugins reload [<plugin>]")
|
||||
CMD_DESC(
|
||||
"Manage plugins. Passing no arguments lists currently loaded plugins.")
|
||||
CMD_ARGS(
|
||||
{ "load <plugin>", "Load a plugin." },
|
||||
{ "unload <plugin>", "Unload a plugin." },
|
||||
{ "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." },
|
||||
{ "reload [<plugin>]", "Reload a plugin, passing no argument will reload all plugins" })
|
||||
CMD_EXAMPLES(
|
||||
"/plugin install /home/steveharris/Downloads/metal.py",
|
||||
"/plugin load browser.py",
|
||||
"/plugin unload say.py",
|
||||
"/plugin reload wikipedia.py")
|
||||
|
||||
Reference in New Issue
Block a user