Tue, 05 Nov 2002 05:20:48 +0000
[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;