From 7d3e27370da4a76649d8e49bf5abbf78d6d4dc3b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 31 Jul 2000 15:36:40 +0000 Subject: [PATCH] Never beep with texts with MSGLEVEL_NOHILIGHT level. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@556 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/printtext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c index 3fb0a439..2359227a 100644 --- a/src/fe-common/core/printtext.c +++ b/src/fe-common/core/printtext.c @@ -690,7 +690,8 @@ static char *get_server_tag(TEXT_DEST_REC *dest) static void msg_beep_check(SERVER_REC *server, int level) { - if (level != 0 && (beep_msg_level & level) && + if (level != 0 && (level & MSGLEVEL_NOHILIGHT) == 0 && + (beep_msg_level & level) && (beep_when_away || (server != NULL && !server->usermode_away))) { printbeep(); }