summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/client.c b/client.c
index 3e6c2f9..18aef87 100644
--- a/client.c
+++ b/client.c
@@ -130,8 +130,10 @@ static void handleCap(struct Client *client, struct Message msg) {
 	if (!msg.params[0]) msg.params[0] = "";
 
 	if (!strcmp(msg.params[0], "END")) {
-		client->need &= ~NeedCapEnd;
-		if (!client->need) stateSync(client);
+		if (client->need & NeedCapEnd) {
+			client->need &= ~NeedCapEnd;
+			if (!client->need) stateSync(client);
+		}
 
 	} else if (!strcmp(msg.params[0], "LS")) {
 		client->need |= NeedCapEnd;
title='2020-09-11 20:46:17 -0400'>2020-09-11Add influencer tweetJune McEnroe 2020-09-10Add The Kingdom of GodsJune McEnroe Reading has really slowed down :( 2020-09-07Add SunglassesJune McEnroe An IRC find. 2020-09-06Add Between the BreathsJune McEnroe One of those good songs from a soundtrack of a film that probably isn't? The summary sounds a lot more interesting than the title implies, at least. 2020-09-04Open /dev/tty in nudgeJune McEnroe This makes it work even when it's run connected to a pipe, i.e. as the notify command of catgirl... 2020-09-04Add nudgeJune McEnroe 2020-09-03Build fbclock with -lzJune McEnroe I guess this got lost somewhere, long ago... 2020-08-29Add tweets from retweetsJune McEnroe