diff src/protocols/oscar/oscar.c @ 6318:96196cfb132e

[gaim-migrate @ 6817] How now, brown cow? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 28 Jul 2003 02:52:23 +0000
parents f14718d7082e
children 34c07f5f34a0
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Jul 27 22:13:36 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Mon Jul 28 02:52:23 2003 +0000
@@ -54,6 +54,7 @@
 #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"
 
@@ -1759,6 +1760,8 @@
 		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)
@@ -3071,7 +3074,7 @@
 
 	if (!caps) {
 		return NULL;
-	} else while (bit <= 0x20000) {
+	} else while (bit <= AIM_CAPS_LAST) {
 		if (bit & caps) {
 			switch (bit) {
 			case 0x1:
@@ -3126,6 +3129,9 @@
 			case 0x20000:
 				tmp = _("ICQ UTF8");
 				break;
+			case AIM_CAPS_HIPTOP:
+				tmp = _("Hiptop");
+				break;
 			default:
 				tmp = NULL;
 				break;
@@ -5395,6 +5401,8 @@
 		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"; */
 	*se = emblems[0];