diff options
author | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2023-05-10 15:07:07 +0200 |
---|---|---|
committer | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2023-05-10 18:12:11 +0200 |
commit | 8cd53acfd7450b4c1d22c956021af28135c38240 (patch) | |
tree | bfb34be7ba566b6fd30d67bd181312978c0987cd /src/command | |
parent | 08d68d329bac4417a8c7a9c44d7398e460fc0751 (diff) | |
download | profani-tty-8cd53acfd7450b4c1d22c956021af28135c38240.tar.gz |
fix `/reconnect now`
This fixes #1846 Issue introduced by a0aa26b6fa65ba625f4a6d3495a345c7120ff16d Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_funcs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 6e9ca259..7f44c116 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -6575,7 +6575,8 @@ cmd_reconnect(ProfWin* window, const char* const command, gchar** args) int intval = 0; char* err_msg = NULL; if (g_strcmp0(value, "now") == 0) { - session_reconnect_now(); + cons_show("Reconnecting now."); + cl_ev_reconnect(); } else if (strtoi_range(value, &intval, 0, INT_MAX, &err_msg)) { prefs_set_reconnect(intval); if (intval == 0) { |