From 4fb94a1a223867af1db5252ab39ccc56c585fccb Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 16 Jun 2020 23:14:07 -0400 Subject: Color mentions up to first ": " rather than just ":" Avoids coloring everything up to a ":)". --- handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle.c b/handle.c index 796441e..422cd76 100644 --- a/handle.c +++ b/handle.c @@ -1060,7 +1060,7 @@ static bool isMention(const struct Message *msg) { } static const char *colorMentions(uint id, struct Message *msg) { - char *split = strchr(msg->params[1], ':'); + char *split = strstr(msg->params[1], ": "); if (!split) { split = strchr(msg->params[1], ' '); if (split) split = strchr(&split[1], ' '); -- cgit 1.4.1