summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--chat.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/chat.c b/chat.c
index ea6e0c4..25c0824 100644
--- a/chat.c
+++ b/chat.c
@@ -272,7 +272,7 @@ int main(int argc, char *argv[]) {
 		{ .events = POLLIN, .fd = execPipe[0] },
 	};
 	while (!self.quit) {
-		int nfds = poll(fds, (self.restricted ? 2 : ARRAY_LEN(fds)), 600000);
+		int nfds = poll(fds, (self.restricted ? 2 : ARRAY_LEN(fds)), -1);
 		if (nfds < 0 && errno != EINTR) err(EX_IOERR, "poll");
 		if (nfds > 0) {
 			if (fds[0].revents) uiRead();
@@ -281,11 +281,6 @@ int main(int argc, char *argv[]) {
 			if (fds[3].revents) execRead();
 		}
 
-		// XXX: Socket seems to just stop working when connected to something
-		// like pounce which sends no pings and there is no activity for a long
-		// time, so just send something...
-		if (!nfds) ircFormat("\r\n");
-
 		if (signals[SIGHUP]) self.quit = "zzz";
 		if (signals[SIGINT] || signals[SIGTERM]) break;
 
low=1'>Eliminate array in hashJune McEnroe 2020-02-10Add -HJune McEnroe 2020-02-10Hash to colors in the range 2-75June McEnroe 2020-02-10Improve color fudgingJune McEnroe 2020-02-10Support all 99 IRC colorsJune McEnroe 2020-02-10Avoid coloring mentions if there are control codesJune McEnroe 2020-02-10Recalculate unreadLines on reflowJune McEnroe 2020-02-10Only make windows hotterJune McEnroe 2020-02-10Always increase unreadLinesJune McEnroe 2020-02-10Move scroll marker on resizeJune McEnroe 2020-02-10Update line count for words longer than linesJune McEnroe 2020-02-10Simplify mark, heat, unread trackingJune McEnroe 2020-02-10Update prompt when own nick changesJune McEnroe 2020-02-10Match URLs surrounded by parenthesesJune McEnroe 2020-02-10Fix M-a so it properly cycles back to where it startedJune McEnroe 2020-02-09Add M-lJune McEnroe 2020-02-09Add /whoisJune McEnroe 2020-02-09Add /msgJune McEnroe