diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-18 06:30:11 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-18 06:30:11 -0400 |
| commit | b07cf8d151424ea0f6790e884af160e233943579 (patch) | |
| tree | a264fb666221439465af6949149810580d89fbce /src/cmd.c | |
| parent | a0a87c0a32fd891efcaf82f8d49b7221fa1ffe2b (diff) | |
| download | fujinet-chat-b07cf8d151424ea0f6790e884af160e233943579.tar.gz | |
Ping server after 1 min of inactivity; disconnect/reconnect if no PONG within the next minute.
Diffstat (limited to 'src/cmd.c')
| -rw-r--r-- | src/cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -275,7 +275,7 @@ static void rtclok_to_numbuf(void) { itoa(read_rtclok(), numbuf, 10); } -static void do_server_ping(void) { +static void cmd_server_ping(void) { rtclok_to_numbuf(); txbuf_set_str2("PING ", numbuf); txbuf_send(); @@ -346,7 +346,7 @@ static void do_ping(void) { if(arg1) do_ctcp_ping(); else - do_server_ping(); + cmd_server_ping(); } static void do_list(void) { |
