]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Disable custom sounds when away_omit_alerts enabled
authorYuGiOhJCJ <redacted>
Tue, 6 Jun 2017 18:28:09 +0000 (20:28 +0200)
committerPatrick Griffis <redacted>
Sat, 10 Jun 2017 20:18:55 +0000 (16:18 -0400)
Closes #2012

src/common/text.c

index 48b81ea5cacaf556df0497e64b619cb528db711c..60a069c950e267bdc2ae83252976444fdec786d9 100644 (file)
@@ -2194,6 +2194,9 @@ 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])
        {