diff src/protocols/oscar/oscar.c @ 2679:94aa499ecd39

[gaim-migrate @ 2692] This is not an advertisement and has nothing to do with who I work for. I promise. Its just about personal taste. committer: Tailor Script <tailor@pidgin.im>
author Adam Fritzler <mid@auk.cx>
date Tue, 06 Nov 2001 04:40:21 +0000
parents e759254b29bb
children 37d80035e77f
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Mon Nov 05 20:51:12 2001 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Nov 06 04:40:21 2001 +0000
@@ -1545,7 +1545,8 @@
 
 static char *images(int flags) {
 	static char buf[1024];
-	g_snprintf(buf, sizeof(buf), "%s%s%s%s",
+	g_snprintf(buf, sizeof(buf), "%s%s%s%s%s",
+			(flags & AIM_FLAG_ACTIVEBUDDY) ? "<IMG SRC=\"ab_icon.gif\">" : "",
 			(flags & AIM_FLAG_UNCONFIRMED) ? "<IMG SRC=\"dt_icon.gif\">" : "",
 			(flags & AIM_FLAG_AOL) ? "<IMG SRC=\"aol_icon.gif\">" : "",
 			(flags & AIM_FLAG_ADMINISTRATOR) ? "<IMG SRC=\"admin_icon.gif\">" : "",
@@ -2462,10 +2463,10 @@
 			return icon_offline_xpm;
 		return icon_online_xpm;
 	}
-	if (uc & UC_AB)
-		return (char **)ab_xpm;
 	if (uc & UC_UNAVAILABLE)
 		return (char **)away_icon_xpm;
+	if ((uc & UC_AB) && (uc & UC_NORMAL))
+		return (char **)ab_xpm;
 	if (uc & UC_AOL)
 		return (char **)aol_icon_xpm;
 	if (uc & UC_ADMIN)