From b07cf8d151424ea0f6790e884af160e233943579 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 18 Mar 2026 06:30:11 -0400 Subject: Ping server after 1 min of inactivity; disconnect/reconnect if no PONG within the next minute. --- src/irc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/irc.h') diff --git a/src/irc.h b/src/irc.h index e2315a5..0035444 100644 --- a/src/irc.h +++ b/src/irc.h @@ -39,6 +39,9 @@ void txbuf_send_str(const char *str); void print_error(unsigned char err); +/* does exactly what you think */ +void fn_disconnect(void); + /**** irc.c */ #define MAX_MSG_ARGS 8 extern char bell_type; @@ -68,4 +71,6 @@ void cmd_execute(void); void cmd_rejoin_chans(void); void cmd_ctcp_ping(char *nick); void cmd_send_pm(char *args); +void cmd_ctcp_ping(char *nick); +void cmd_server_ping(void); unsigned int read_rtclok(void); /* irc.c needs this one so it's not static */ -- cgit v1.2.3