add now option to /reconnect command

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2022-12-27 22:53:18 +01:00
parent a45f05a45e
commit a0aa26b6fa
5 changed files with 22 additions and 15 deletions

View File

@@ -1936,11 +1936,13 @@ static const struct cmd_t command_defs[] = {
CMD_TAGS(
CMD_TAG_CONNECTION)
CMD_SYN(
"/reconnect <seconds>")
"/reconnect <seconds>",
"/reconnect now")
CMD_DESC(
"Set the reconnect attempt interval for when the connection is lost.")
"Set the reconnect attempt interval for when the connection is lost or immediately trigger a reconnect.")
CMD_ARGS(
{ "<seconds>", "Number of seconds before attempting to reconnect, a value of 0 disables reconnect." })
{ "<seconds>", "Number of seconds before attempting to reconnect, a value of 0 disables reconnect." },
{ "now", "Immediately trigger a reconnect." })
},
{ CMD_PREAMBLE("/autoping",