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);
 	}
 }