mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-09 12:42:31 +01:00
Actually respect away_omit_alerts for custom sounds...
Probably should think before merging things.
This commit is contained in:
parent
2dd5f8788c
commit
2edf50d4dd
@ -2098,7 +2098,8 @@ text_emit (int index, session *sess, char *a, char *b, char *c, char *d,
|
|||||||
break;
|
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);
|
display_event (sess, index, word, stripcolor_args, timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2194,9 +2195,6 @@ sound_play (const char *file, gboolean quiet)
|
|||||||
char *cmd;
|
char *cmd;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (prefs.hex_away_omit_alerts)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* the pevents GUI editor triggers this after removing a soundfile */
|
/* the pevents GUI editor triggers this after removing a soundfile */
|
||||||
if (!file[0])
|
if (!file[0])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user