Merge pull request #1260 from ailin-nemui/nohilight

add /IGNORE ... NOHILIGHT to ignore some hilights
This commit is contained in:
ailin-nemui 2021-04-18 12:00:52 +02:00 committed by GitHub
commit f93879baff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 16 deletions

View file

@ -114,6 +114,12 @@ static void sig_message_irc_op_public(SERVER_REC *server, const char *msg,
return;
}
if (level & MSGLEVEL_NOHILIGHT) {
for_me = FALSE;
g_free_and_null(color);
level &= ~MSGLEVEL_HILIGHT;
}
if (settings_get_bool("emphasis"))
msg = freemsg = expand_emphasis((WI_ITEM_REC *) chanrec, msg);