# HG changeset patch # User Luke Schierer # Date 1036473648 0 # Node ID 7740c891537e7db78d49dcffb67184ef987fbf2c # Parent 32ebcc0df96c16f6550aaceeff75cdd6c5e3b8fc [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 diff -r 32ebcc0df96c -r 7740c891537e 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;