summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--handle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index 95ef50d..40d3f28 100644
--- a/handle.c
+++ b/handle.c
@@ -529,7 +529,10 @@ static bool isMention(const struct Message *msg) {
 
 static const char *colorMentions(size_t id, struct Message *msg) {
 	char *split = strchr(msg->params[1], ':');
-	if (!split) split = strchr(msg->params[1], ' ');
+	if (!split) {
+		split = strchr(msg->params[1], ' ');
+		if (split) split = strchr(&split[1], ' ');
+	}
 	if (!split) split = &msg->params[1][strlen(msg->params[1])];
 	for (char *ch = msg->params[1]; ch < split; ++ch) {
 		if (iscntrl(*ch)) return "";
?id=bd985953cf8c45a7d9a92ece8a986975c3ac496a&follow=1'>Use inline style rather than <b>, <i>, <u>June McEnroe 2019-07-11Factor out clearJune McEnroe 2019-07-11Add bright option to shottyJune McEnroe 2019-07-11Output <b>, <i>, <u> in shottyJune McEnroe 2019-07-10Ignore SM and RMJune McEnroe 2019-07-09Add shotty man page and build itJune McEnroe 2019-07-09Add up -cJune McEnroe 2019-07-09Add options for default colors to shottyJune McEnroe 2019-07-08Use char literals consistentlyJune McEnroe