[gaim-migrate @ 4054]

Tue, 05 Nov 2002 05:20:48 +0000

author
Ari Pollak <ari@debian.org>
date
Tue, 05 Nov 2002 05:20:48 +0000
changeset 3901
c2bd3d3125fd
parent 3900
4313e2005e8a
child 3902
495e39ae6a1d

[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: Luke Schierer <lschiere@pidgin.im>

src/sound.c file | annotate | diff | comparison | revisions
--- 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;

mercurial