diff src/conversation.c @ 741:58a6e6e26695

[gaim-migrate @ 751] oscar logins work better (?), aliases in convo windows. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 22 Aug 2000 23:38:47 +0000
parents 97c7b2f61cb5
children d693b83e4933
line wrap: on
line diff
--- a/src/conversation.c	Tue Aug 22 19:23:36 2000 +0000
+++ b/src/conversation.c	Tue Aug 22 23:38:47 2000 +0000
@@ -1091,12 +1091,22 @@
 	int colorv = -1;
 	char *clr;
 	char *smiley = g_malloc(7);
+	struct buddy *b;
 
 	if (!who) {
 		if (flags & WFLAG_SEND)
 			who = current_user->username;
-		else
-			who = c->name;
+		else {
+			b = find_buddy(c->name);
+			if (b)
+				who = b->show;
+			else
+				who = c->name;
+		}
+	} else {
+		b = find_buddy(who);
+		if (b)
+			who = b->show;
 	}
 	
         if (flags & WFLAG_SYSTEM) {