From 293881ff463c51b87d04620bc04f71d05ad5dd64 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 27 May 2019 20:59:30 -0400 Subject: Break nicks with ZWNJ This should prevent bad wrapping. --- bin/relay.c | 6 +++--- 1 file 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); } } -- cgit 1.4.1