1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Remove NO_ACT if we see a user specified hilight

In this path we can't look up ignores again because the print text signal
doesn't know the nick, etc. Instead just show it. The user can use -actcolor %n
or make the hilight more specific if desired.
This commit is contained in:
David Leadbeater 2014-06-30 00:05:46 +01:00
parent d84811b192
commit 6bbb114046

View File

@ -336,6 +336,12 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text,
if (!nick_match || (dest->level & MSGLEVEL_HILIGHT)) { if (!nick_match || (dest->level & MSGLEVEL_HILIGHT)) {
/* update the level / hilight info */ /* update the level / hilight info */
hilight_update_text_dest(dest, hilight); hilight_update_text_dest(dest, hilight);
/* Remove NO_ACT, this means explicitly defined hilights will bypass
* /IGNORE ... NO_ACT.
* (It's still possible to use /hilight -actcolor %n to hide
* hilight/beep).
*/
dest->level &= ~MSGLEVEL_NO_ACT;
} }
if (nick_match) if (nick_match)