changeset 3216:b17d773c3c80

[gaim-migrate @ 3233] Play sound when your name is said committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 06 May 2002 16:47:27 +0000
parents 5456065a16a8
children 80d20a257a36
files src/buddy_chat.c src/sound.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy_chat.c	Sun May 05 20:19:40 2002 +0000
+++ b/src/buddy_chat.c	Mon May 06 16:47:27 2002 +0000
@@ -721,7 +721,8 @@
 		g_free(str);
 	}
 
-	if ((flag & WFLAG_RECV) && find_nick(b->gc, message))
+	if ((flag & WFLAG_RECV) && find_nick(b->gc, message)) {
+		play_sound(SND_CHAT_NICK);
 		flag |= WFLAG_NICK;
 
 	write_to_conv(b, message, flag, who, mtime, -1);
--- a/src/sound.c	Sun May 05 20:19:40 2002 +0000
+++ b/src/sound.c	Mon May 06 16:47:27 2002 +0000
@@ -65,6 +65,7 @@
 	N_("Person leaves chat"), OPT_SOUND_CHAT_PART, BuddyLeave, sizeof(BuddyLeave),
 	N_("You talk in chat"), OPT_SOUND_CHAT_YOU_SAY, Send, sizeof(Send),
 	N_("Others talk in chat"), OPT_SOUND_CHAT_SAY, Receive, sizeof(Receive),
+	N_("Someone says your name in chat"), OPT_SOUND_CHAT_NICK, Receive, sizeof(Receive),
 	NULL, 0, RedAlert, sizeof(RedAlert)
 };