Mercurial > pidgin.yaz
changeset 3521:f3981f94494a
[gaim-migrate @ 3594]
Play the sounds even if we're queuing them up. This way at least we'll
know you have a message waiting.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 16 Sep 2002 18:13:45 +0000 |
parents | 0cf6fee378fc |
children | 62bef830ce61 |
files | src/server.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server.c Mon Sep 16 15:48:58 2002 +0000 +++ b/src/server.c Mon Sep 16 18:13:45 2002 +0000 @@ -688,6 +688,12 @@ /* we're not away. this is easy. if the convo window doesn't exist, create and update * it (if it does exist it was updated earlier), then play a sound indicating we've * received it and then display it. easy. */ + + if (new_conv && (sound_options & OPT_SOUND_FIRST_RCV)) + play_sound(SND_FIRST_RECEIVE); + else if (cnv->makesound) + play_sound(SND_RECEIVE); + if (away_options & OPT_AWAY_QUEUE_UNREAD && !find_conversation(name)) { /* We're gonna queue it up and wait for the user to ask for it... probably * by clicking the docklet or windows tray icon. */ @@ -705,11 +711,7 @@ cnv = new_conversation(name); set_convo_gc(cnv, gc); } - if (new_conv && (sound_options & OPT_SOUND_FIRST_RCV)) - play_sound(SND_FIRST_RECEIVE); - else if (cnv->makesound) - play_sound(SND_RECEIVE); - + set_convo_name(cnv, name); write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime, len);