diff options
author | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2022-12-27 22:53:18 +0100 |
---|---|---|
committer | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2023-01-18 20:02:46 +0100 |
commit | a0aa26b6fa65ba625f4a6d3495a345c7120ff16d (patch) | |
tree | 551898690f72084567206cd95a325a6f16c577ab /src/command/cmd_defs.c | |
parent | a45f05a45e7daceab95af4daa0f661874a3bd057 (diff) | |
download | profani-tty-a0aa26b6fa65ba625f4a6d3495a345c7120ff16d.tar.gz |
add `now` option to `/reconnect` command
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 6b494e1a..fb37341d 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -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", |