summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-05-27 20:59:30 -0400
committerJune McEnroe <june@causal.agency>2019-05-27 20:59:30 -0400
commit293881ff463c51b87d04620bc04f71d05ad5dd64 (patch)
treee16c43f9f74410b1c46919d15fe4a64886d4c5a0 /bin
parentAdd Dawn (diff)
downloadsrc-293881ff463c51b87d04620bc04f71d05ad5dd64.tar.gz
src-293881ff463c51b87d04620bc04f71d05ad5dd64.zip
Break nicks with ZWNJ
This should prevent bad wrapping.
Diffstat (limited to '')
-rw-r--r--bin/relay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/relay.c b/bin/relay.c
index 7c70b4db..2ffd344b 100644
--- a/bin/relay.c
+++ b/bin/relay.c
@@ -79,11 +79,11 @@ static void clientHandle(struct tls *client, const char *chan, char *line) {
 	if (!strncmp(line, "\1ACTION ", 8)) {
 		line = &line[8];
 		size_t len = strcspn(line, "\1");
-		printf("* %c\u200B%s %.*s\n", nick[0], &nick[1], (int)len, line);
+		printf("* %c\u200C%s %.*s\n", nick[0], &nick[1], (int)len, line);
 	} else if (command[0] == 'N') {
-		printf("-%c\u200B%s- %s\n", nick[0], &nick[1], line);
+		printf("-%c\u200C%s- %s\n", nick[0], &nick[1], line);
 	} else {
-		printf("<%c\u200B%s> %s\n", nick[0], &nick[1], line);
+		printf("<%c\u200C%s> %s\n", nick[0], &nick[1], line);
 	}
 }
 
'>FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe