aboutsummaryrefslogtreecommitdiff
path: root/src/irc.h
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-18 06:30:11 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-18 06:30:11 -0400
commitb07cf8d151424ea0f6790e884af160e233943579 (patch)
treea264fb666221439465af6949149810580d89fbce /src/irc.h
parenta0a87c0a32fd891efcaf82f8d49b7221fa1ffe2b (diff)
downloadfujinet-chat-b07cf8d151424ea0f6790e884af160e233943579.tar.gz
Ping server after 1 min of inactivity; disconnect/reconnect if no PONG within the next minute.
Diffstat (limited to 'src/irc.h')
-rw-r--r--src/irc.h5
1 files changed, 5 insertions, 0 deletions
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 */