about summary refs log tree commit diff
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
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 '')
-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], ' ');
ref='/cgit-pink/commit/ui-view.c?h=1.4.0&id=ca8eb8fc8f71ee0a40015c323619f776840b6503&follow=1'>Add support for downloading single blobsLars Hjemli 2007-05-08ui-view: show pathname if specified in querystringLars Hjemli 2007-05-08Update to libgit 1.5.2-rc2Lars Hjemli 2007-02-21Layout updateLars Hjemli 2007-02-08Make snapshot feature configurableLars Hjemli 2007-02-08Add support for snapshotsLars Hjemli 2007-02-05cgit v0.2Lars Hjemli 2007-02-05Add support for prefix and gitsrc arguments to 'make'Lars Hjemli 2007-02-04Update cgitrc templateLars Hjemli 2007-02-04Add support for lightweight tagsLars Hjemli 2007-02-04Read repo-info from /etc/cgitrcLars Hjemli 2007-02-04Do not die if tag has no messageLars Hjemli 2007-02-03Fix search for non-virtual urlsLars Hjemli 2007-01-28Update README with install/config informationLars Hjemli