changeset 372:8c3b075d7aba

[gaim-migrate @ 382] :) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 09 Jun 2000 10:32:33 +0000
parents 9d22acf6db73
children 1d29321843b0
files src/buddy_chat.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy_chat.c	Fri Jun 09 10:09:26 2000 +0000
+++ b/src/buddy_chat.c	Fri Jun 09 10:32:33 2000 +0000
@@ -260,6 +260,15 @@
         } else {
 		buf2 = g_strdup(message);
 		if (!strncmp(buf2, "/me ", 4)) {
+	                str = g_strdup(normalize(who));
+	                if (!strcasecmp(str, normalize(current_user->username))) {
+				if (b->makesound && (sound_options & OPT_SOUND_CHAT_SAY))
+					play_sound(SEND);
+			} else {
+				if (b->makesound && (sound_options & OPT_SOUND_CHAT_SAY))
+					play_sound(RECEIVE);
+			}
+	                g_free(str);
 			str = g_malloc(64);
 			g_snprintf(str, 62, "***%s", who);
 			strcpy(colour, "#6C2585\0");