summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-26 02:59:22 -0500
committerJune McEnroe <june@causal.agency>2020-02-26 02:59:34 -0500
commit3542b79628b986c5b87ea572a45f4c61d5952056 (patch)
tree42ae8c1bde1467c338e0fde58f788b54e3af5561
parentAlso skip the origin in wordcmp (diff)
downloadpounce-3542b79628b986c5b87ea572a45f4c61d5952056.tar.gz
pounce-3542b79628b986c5b87ea572a45f4c61d5952056.zip
Clean up intercept tag skip
"Tag skip" like it's a speedrun :3
-rw-r--r--client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/client.c b/client.c
index 57895a5..ba5c325 100644
--- a/client.c
+++ b/client.c
@@ -295,12 +295,10 @@ static void clientParse(struct Client *client, char *line) {
 static bool intercept(const char *line, size_t len) {
 	if (line[0] == '@') {
 		const char *sp = memchr(line, ' ', len);
+		if (!sp) return false;
+		sp++;
 		len -= sp - line;
 		line = sp;
-		if (len) {
-			len--;
-			line++;
-		}
 	}
 	if (len >= 4 && !memcmp(line, "CAP ", 4)) return true;
 	if (len == 4 && !memcmp(line, "QUIT", 4)) return true;
b9a863c78bd4f90936&follow=1'>Add debian VM name to sshJune McEnroe 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