changeset 3901:7740c891537e

[gaim-migrate @ 4054] "If a buddy pounce is enabled for a buddy, and a sound file is set to play (and the preferences say sounds shouldn't be played while away), but gaim is set away, a sound will be played anyway. This fixes such a behavior." -- Ari Pollak (sourceo) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 05 Nov 2002 05:20:48 +0000
parents 32ebcc0df96c
children 22ed8423a964
files src/sound.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sound.c	Tue Nov 05 03:25:45 2002 +0000
+++ b/src/sound.c	Tue Nov 05 05:20:48 2002 +0000
@@ -425,6 +425,9 @@
 #ifndef _WIN32
 	int pid;
 #endif
+	if (awaymessage && !(sound_options & OPT_SOUND_WHEN_AWAY))
+		return; /* check here in case a buddy pounce plays a file while away */
+	
 	if (sound_options & OPT_SOUND_BEEP) {
 		gdk_beep();
 		return;