diff src/protocols/oscar/oscar.c @ 7945:0a0be07f066a

[gaim-migrate @ 8619] Hopefully recognize the iChat AV capability. Also hopefully fix a problem faceprint was seeing where hiptop users wouldn't always have the hiptop icon. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 28 Dec 2003 22:12:50 +0000
parents c5a4d1863425
children 7b8407d8c546
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Dec 28 04:27:27 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Dec 28 22:12:50 2003 +0000
@@ -51,7 +51,6 @@
 #define UC_NORMAL	0x10
 #define UC_AB		0x20
 #define UC_WIRELESS	0x40
-#define UC_HIPTOP	0x80
 
 #define AIMHASHDATA "http://gaim.sourceforge.net/aim_data.php3"
 
@@ -1758,8 +1757,6 @@
 		caps = info->capabilities;
 	if (info->flags & AIM_FLAG_ACTIVEBUDDY)
 		type |= UC_AB;
-	if (caps & AIM_CAPS_HIPTOP)
-		type |= UC_HIPTOP;
 
 	if (info->present & AIM_USERINFO_PRESENT_FLAGS) {
 		if (info->flags & AIM_FLAG_UNCONFIRMED)
@@ -3137,6 +3134,9 @@
 			case AIM_CAPS_VIDEO:
 				tmp = _("Video Chat");
 				break;
+			case AIM_CAPS_ICHATAV:
+				tmp = _("iChat AV");
+				break;
 			default:
 				tmp = NULL;
 				break;
@@ -5385,6 +5385,8 @@
 		gc = account->gc;
 	if (gc != NULL)
 		od = gc->proto_data;
+	if (od != NULL)
+		userinfo = aim_locate_finduserinfo(od->sess, b->name);
 
 	if (!GAIM_BUDDY_IS_ONLINE(b)) {
 		char *gname;
@@ -5423,16 +5425,14 @@
 		emblems[i++] = "admin";
 	if (b->uc & UC_AB && i < 4)
 		emblems[i++] = "activebuddy";
-	if (b->uc & UC_HIPTOP && i < 4)
-		emblems[i++] = "hiptop";
 /*	if (b->uc & UC_UNCONFIRMED && i < 4)
 		emblems[i++] = "unconfirmed"; */
 
-	if ((i < 4) && (od != NULL)) {
-		userinfo = aim_locate_finduserinfo(od->sess, b->name);
-		if ((userinfo != NULL) && (userinfo->capabilities & AIM_CAPS_SECUREIM))
+	if ((i < 4) && (userinfo != NULL) && (userinfo->capabilities & AIM_CAPS_HIPTOP))
+			emblems[i++] = "hiptop";
+
+	if ((i < 4) && (userinfo != NULL) && (userinfo->capabilities & AIM_CAPS_SECUREIM))
 			emblems[i++] = "secure";
-	}
 
 	*se = emblems[0];
 	*sw = emblems[1];