diff options
author | June McEnroe <june@causal.agency> | 2020-06-16 23:14:07 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-06-16 23:14:07 -0400 |
commit | 4fb94a1a223867af1db5252ab39ccc56c585fccb (patch) | |
tree | 0d67f726fd9dcbc1b6b8c99130c5e2996b890a19 /handle.c | |
parent | Add null terminator to modes in channelListMode (diff) | |
download | catgirl-4fb94a1a223867af1db5252ab39ccc56c585fccb.tar.gz catgirl-4fb94a1a223867af1db5252ab39ccc56c585fccb.zip |
Color mentions up to first ": " rather than just ":"
Avoids coloring everything up to a ":)".
Diffstat (limited to '')
-rw-r--r-- | handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
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], ' '); |