summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-02-14 00:14:26 +0000
committerJune McEnroe <june@causal.agency>2022-02-14 00:14:26 +0000
commit6cd9cf0d80fee8f067e81f30a0fe7b145a1e8533 (patch)
tree400a90b8c9527ab199bcbc0ae06070b64088001c
parentCorrect diminishing shine, I think (diff)
downloadsrc-6cd9cf0d80fee8f067e81f30a0fe7b145a1e8533.tar.gz
src-6cd9cf0d80fee8f067e81f30a0fe7b145a1e8533.zip
Narrow filter
Diffstat (limited to '')
-rw-r--r--www/git.causal.agency/filter.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/git.causal.agency/filter.c b/www/git.causal.agency/filter.c
index b9e7f4cd..9ed9ee17 100644
--- a/www/git.causal.agency/filter.c
+++ b/www/git.causal.agency/filter.c
@@ -32,7 +32,11 @@ static int email(void) {
 	size_t cap = 0;
 	char *buf = NULL;
 	if (getline(&buf, &cap, stdin) < 0) err(1, "getline");
-	if (buf[0] == 'C') {
+	long x = 1;
+	for (char *ch = buf; *ch && *ch != ' '; ++ch) {
+		x *= *ch;
+	}
+	if (buf[0] == 'C' && x == 1251729952200L) {
 		printf("C.%s", buf + strcspn(buf, " "));
 	} else {
 		printf("%s", buf);