mirror of
https://github.com/weechat/weechat.git
synced 2026-07-10 19:53:13 +02:00
core: fix highlight of IRC action messages when option irc.look.nick_mode is set to "action" or "both" (closes #206)
This commit is contained in:
@@ -782,7 +782,16 @@ gui_line_has_highlight (struct t_gui_line *line)
|
||||
{
|
||||
length = strlen (ptr_nick);
|
||||
if (strncmp (ptr_msg_no_color, ptr_nick, length) == 0)
|
||||
{
|
||||
/* skip nick at beginning (for example: "FlashCode") */
|
||||
ptr_msg_no_color += length;
|
||||
}
|
||||
else if (ptr_msg_no_color[0]
|
||||
&& (strncmp (ptr_msg_no_color + 1, ptr_nick, length) == 0))
|
||||
{
|
||||
/* skip prefix and nick at beginning (for example: "@FlashCode") */
|
||||
ptr_msg_no_color += length + 1;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user