changeset 2713:34ddcb44a4d2

[gaim-migrate @ 2726] eh committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 13 Nov 2001 06:48:34 +0000
parents d17c504adc36
children 8074f7ae5d3a
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Tue Nov 13 06:36:27 2001 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Nov 13 06:48:34 2001 +0000
@@ -1087,12 +1087,15 @@
 	struct gaim_connection *gc = sess->aux_data;
 	struct oscar_data *od = gc->proto_data;
 	char *tmp;
+	int caps;
 
 	va_list ap;
 	va_start(ap, fr);
 	info = va_arg(ap, aim_userinfo_t *);
 	va_end(ap);
 
+	caps = info->capabilities;
+
 	if (!od->icq) {
 		if (info->flags & AIM_FLAG_ACTIVEBUDDY)
 			type |= UC_AB;
@@ -1112,6 +1115,8 @@
 			if (!(info->icqinfo.status & AIM_ICQ_STATE_CHAT))
 				type |= UC_UNAVAILABLE;
 		}
+		if (caps & AIM_CAPS_EVERYBUDDY)
+			caps ^= AIM_CAPS_EVERYBUDDY;
 		debug_printf("icq status: %d\n", info->icqinfo.status);
 	}
 
@@ -1127,7 +1132,7 @@
 	g_free(tmp);
 
 	serv_got_update(gc, info->sn, 1, info->warnlevel/10, time(NULL) - info->sessionlen,
-			time_idle, type, info->capabilities);
+			time_idle, type, caps);
 
 	return 1;
 }