about summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-06-16 23:14:07 -0400
committerJune McEnroe <june@causal.agency>2020-06-16 23:14:07 -0400
commit4fb94a1a223867af1db5252ab39ccc56c585fccb (patch)
tree0d67f726fd9dcbc1b6b8c99130c5e2996b890a19 /handle.c
parentAdd null terminator to modes in channelListMode (diff)
downloadcatgirl-4fb94a1a223867af1db5252ab39ccc56c585fccb.tar.gz
catgirl-4fb94a1a223867af1db5252ab39ccc56c585fccb.zip
Color mentions up to first ": " rather than just ":"
Avoids coloring everything up to a ":)".
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c2
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], ' ');
a4341b23fa5270c2fb37c5f6cf302&follow=1'>build: Remove added x509_verify.3 links 3.3.2June McEnroe 2021-04-18tls: Use EC_KEY_set_ex_dataJune McEnroe 2021-04-18Import LibreSSL 3.3.2June McEnroe 2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe 2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe