commit 15a09f3de50d07b2d3f3cd81eda320e1c8bae189
parent c8feccb92d14672750b8854658498642280f2a24
Author: Andrew Kloet <andrew@kloet.net>
Date: Mon, 27 Apr 2026 16:00:40 -0400
move unused reconn variable to its patch
Diffstat:
3 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/cio.1 b/cio.1
@@ -17,8 +17,10 @@
.
.Sh DESCRIPTION
.Nm
-is a multiplexing curses interface for IRC featuring SASL authentication,
-infinite scrollback, and automatic reconnection.
+is a multiplexing curses interface for IRC.
+.Nm
+does not aim for complete coverage of rfc2812, but rather focuses on taking
+design choices with the aim of creating hackable code that is easily extendable.
The options are as follows:
.Bl -tag -width Ds
.It Fl T
diff --git a/cio.c b/cio.c
@@ -79,7 +79,6 @@ enum {
MaxParams = 15,
BufSz = 2048,
LogSz = 4096,
- MaxRecons = 10, /* -1 for infinitely many */
PingDelay = 6,
UtfSz = 4,
RuneInvalid = 0xFFFD,
diff --git a/patches/reconnect.diff b/patches/reconnect.diff
@@ -1,11 +1,19 @@
- cio.c | 32 +++++++++++++++++++++++++-------
- 1 file changed, 25 insertions(+), 7 deletions(-)
+ cio.c | 33 ++++++++++++++++++++++++++-------
+ 1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/cio.c b/cio.c
-index fe90dc3..f7d3bdc 100644
+index 6eb255d..8951c80 100644
--- a/cio.c
+++ b/cio.c
-@@ -942,7 +942,7 @@ main(int argc, char *argv[])
+@@ -82,6 +82,7 @@ enum {
+ PingDelay = 6,
+ UtfSz = 4,
+ RuneInvalid = 0xFFFD,
++ MaxRecons = 10, /* -1 for infinitely many */
+ };
+
+ typedef wchar_t Rune;
+@@ -941,7 +942,7 @@ main(int argc, char *argv[])
const char *server = SRV;
const char *port = PORT;
const char *err;
@@ -14,7 +22,7 @@ index fe90dc3..f7d3bdc 100644
signal(SIGPIPE, SIG_IGN);
while ((o = getopt(argc, argv, "hvTVn:c:u:s:p:l:")) >= 0)
-@@ -995,13 +995,14 @@ main(int argc, char *argv[])
+@@ -994,13 +995,14 @@ main(int argc, char *argv[])
tinit();
err = dial(server, port);
#ifdef __OpenBSD__
@@ -30,7 +38,7 @@ index fe90dc3..f7d3bdc 100644
while (!quit) {
struct timeval t = {.tv_sec = 5};
fd_set rfs, wfs;
-@@ -1010,24 +1011,41 @@ main(int argc, char *argv[])
+@@ -1009,24 +1011,41 @@ main(int argc, char *argv[])
FD_ZERO(&wfs);
FD_ZERO(&rfs);
FD_SET(0, &rfs);