From 2edf50d4ddc61ce6f73bf02263c9bdd09632c66b Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Sat, 10 Jun 2017 16:28:48 -0400 Subject: [PATCH] Actually respect away_omit_alerts for custom sounds... Probably should think before merging things. --- src/common/text.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/text.c b/src/common/text.c index 60a069c9..eac31ba3 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -2098,7 +2098,8 @@ text_emit (int index, session *sess, char *a, char *b, char *c, char *d, break; } - sound_play_event (index); + if (!prefs.hex_away_omit_alerts || !sess->server->is_away) + sound_play_event (index); display_event (sess, index, word, stripcolor_args, timestamp); } @@ -2194,9 +2195,6 @@ sound_play (const char *file, gboolean quiet) char *cmd; #endif - if (prefs.hex_away_omit_alerts) - return; - /* the pevents GUI editor triggers this after removing a soundfile */ if (!file[0]) {