# HG changeset patch # User Sean Egan # Date 1020704714 0 # Node ID 639960efc6ff1950d3f66ab30eb63a4d3678383c # Parent 2bc01c8f6c61f2f97491232b2084a511d1662c2e [gaim-migrate @ 3236] They convinced me to make it compile before committing. committer: Tailor Script diff -r 2bc01c8f6c61 -r 639960efc6ff src/buddy_chat.c --- a/src/buddy_chat.c Mon May 06 16:50:06 2002 +0000 +++ b/src/buddy_chat.c Mon May 06 17:05:14 2002 +0000 @@ -722,7 +722,8 @@ } if ((flag & WFLAG_RECV) && find_nick(b->gc, message)) { - play_sound(SND_CHAT_NICK); + if (b->makesound && !(sound_options & OPT_SOUND_CHAT_SAY)) + play_sound(SND_CHAT_NICK); flag |= WFLAG_NICK; } write_to_conv(b, message, flag, who, mtime, -1); diff -r 2bc01c8f6c61 -r 639960efc6ff src/gaim.h --- a/src/gaim.h Mon May 06 16:50:06 2002 +0000 +++ b/src/gaim.h Mon May 06 17:05:14 2002 +0000 @@ -283,7 +283,7 @@ #define OPT_SOUND_ARTSC 0x00008000 #define OPT_SOUND_ESD 0x00010000 #define OPT_SOUND_CMD 0x00020000 -#define OPT_SOUND_NICK 0x00040000 +#define OPT_SOUND_CHAT_NICK 0x00040000 /* remember to also change the struct in sound.c */ #define SND_BUDDY_ARRIVE 0 #define SND_BUDDY_LEAVE 1 @@ -295,7 +295,8 @@ #define SND_CHAT_YOU_SAY 7 #define SND_CHAT_SAY 8 #define SND_POUNCE_DEFAULT 9 -#define NUM_SOUNDS 10 +#define SND_CHAT_NICK 10 +#define NUM_SOUNDS 11 extern char *sound_file[NUM_SOUNDS]; /* global sound struct */