Color mentions up to first ": " rather than just ":"

Avoids coloring everything up to a ":)".
Tento commit je obsažen v:
C. McEnroe 2020-06-16 23:14:07 -04:00
rodič 82acea5dfa
revize 4fb94a1a22

Zobrazit soubor

@ -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], ' ');