# HG changeset patch # User Ari Pollak # Date 1036473648 0 # Node ID c2bd3d3125fde5d2054cd7b3d22be5d154c4d30f # Parent 4313e2005e8a856a90f1af25a8650f417ae6e42e [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 diff -r 4313e2005e8a -r c2bd3d3125fd src/sound.c --- 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;