Actually respect away_omit_alerts for custom sounds...

Probably should think before merging things.
This commit is contained in:
Patrick Griffis 2017-06-10 16:28:48 -04:00
parent 2dd5f8788c
commit 2edf50d4dd

View File

@ -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])
{