comparison src/sound.c @ 1235:a9cf2f61a7b1

[gaim-migrate @ 1245] 1. added protocol names to menus in conversation/join chat dialog. helpful if you're signed on as warmenhoven in both irc and yahoo. 2. made "no sounds when away" mean absolutely no sounds when away. 3. fixed buddy pounces and made it so you can save them. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 12 Dec 2000 09:09:24 +0000
parents 0baf39dc5437
children 46c09828e929
comparison
equal deleted inserted replaced
1234:cedf7047081e 1235:a9cf2f61a7b1
404 extern int logins_not_muted; 404 extern int logins_not_muted;
405 405
406 void play_sound(int sound) 406 void play_sound(int sound)
407 { 407 {
408 408
409 if (awaymessage && !(sound_options & OPT_SOUND_WHEN_AWAY))
410 return;
411
409 switch(sound) { 412 switch(sound) {
410 case BUDDY_ARRIVE: 413 case BUDDY_ARRIVE:
411 if ((sound_options & OPT_SOUND_LOGIN) && logins_not_muted) { 414 if ((sound_options & OPT_SOUND_LOGIN) && logins_not_muted) {
412 if (sound_file[BUDDY_ARRIVE]) { 415 if (sound_file[BUDDY_ARRIVE]) {
413 play_file(sound_file[BUDDY_ARRIVE]); 416 play_file(sound_file[BUDDY_ARRIVE]);