diff src/buddy_chat.c @ 960:fa681641643d

[gaim-migrate @ 970] *** MULTIPLE-CONNECTIONS *** committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 10 Oct 2000 00:02:02 +0000
parents 378c862a2381
children 2cd7b73e2c9a
line wrap: on
line diff
--- a/src/buddy_chat.c	Mon Oct 09 23:56:33 2000 +0000
+++ b/src/buddy_chat.c	Tue Oct 10 00:02:02 2000 +0000
@@ -315,8 +315,8 @@
         
         if (!(flag & WFLAG_WHISPER)) {
 		str = g_strdup(normalize(who));
-		if (!strcasecmp(str, normalize(current_user->username))) {
-			sprintf(debug_buff, "%s %s\n", normalize(who), normalize(current_user->username));
+		if (!strcasecmp(str, normalize(b->gc->username))) {
+			sprintf(debug_buff, "%s %s\n", normalize(who), normalize(b->gc->username));
 			debug_print(debug_buff);
 			if (b->makesound && (sound_options & OPT_SOUND_CHAT_SAY))
 				play_sound(SEND);
@@ -358,10 +358,10 @@
 
 	gtk_editable_delete_text(GTK_EDITABLE(b->entry), 0, -1);
 
-        escape_text(buf);
+        escape_text(buf); /* it's ok to leave this here because oscar can't whisper */
         serv_chat_whisper(b->id, who, buf);
                           
-	g_snprintf(buf2, sizeof(buf2), "%s->%s", current_user->username, who);
+	g_snprintf(buf2, sizeof(buf2), "%s->%s", b->gc->username, who);
 
 	chat_write(b, buf2, WFLAG_WHISPER, buf);