hirc

IRC client
Log | Files | Refs

commit 864cf03be8fda72b488a7ef4215ad07b7a5f33bd
parent 8da44e0095085cb98ac3a33b9d5769a956abad9b
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 12 Dec 2021 14:59:49 +0000

s/handle.c: set messages containing server->self->nick to Activity_hilight

Diffstat:
Msrc/handle.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/handle.c b/src/handle.c @@ -269,7 +269,9 @@ handle_PRIVMSG(char *msg, char **params, struct Server *server, time_t timestamp if ((chan = chan_get(&server->channels, target, -1)) == NULL) chan = chan_add(server, &server->channels, target); - hist_add(chan->history, nick, msg, params, act_regular, timestamp, HIST_DFL); + hist_add(chan->history, nick, msg, params, + strstr(*(params+3), server->self->nick) ? act_direct : act_regular, + timestamp, HIST_DFL); } nick_free(nick);