Color mentions up to first ": " rather than just ":"
Avoids coloring everything up to a ":)".weechat-hashes
parent
82acea5dfa
commit
4fb94a1a22
2
handle.c
2
handle.c
|
@ -1060,7 +1060,7 @@ static bool isMention(const struct Message *msg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *colorMentions(uint id, 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) {
|
if (!split) {
|
||||||
split = strchr(msg->params[1], ' ');
|
split = strchr(msg->params[1], ' ');
|
||||||
if (split) split = strchr(&split[1], ' ');
|
if (split) split = strchr(&split[1], ' ');
|
||||||
|
|
Loading…
Reference in New Issue