diff src/server.c @ 253:5b28ef2b550e

[gaim-migrate @ 263] A few things happened in this update: - Commented out the libfaim deny/permit list stuff because it's seriously buggy - Added Socks v4 support - improved proxy support for things like getting users' info - i think that's it committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 23 May 2000 05:26:30 +0000
parents 4a41f8323022
children 7615d22ad227
line wrap: on
line diff
--- a/src/server.c	Mon May 22 23:58:03 2000 +0000
+++ b/src/server.c	Tue May 23 05:26:30 2000 +0000
@@ -377,23 +377,27 @@
 	sflap_send(buf, -1, TYPE_DATA);
 #else
 	/* oscar requires us to do everyone at once (?) */
-/* FIXME : there's nothing wrong with this code, but it causes the entire buddy
+/* FIXME : there's something wrong with this code, it causes the entire buddy
  * list to update, and can cause other people's buddy lists to improperly update
-	list = permit; at = 0;
-	while (list) {
-		at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", list->data);
-		list = list->next;
+	if (!(permdeny == 1 || permdeny == 3)) {
+		list = permit; at = 0;
+		while (list) {
+			at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", list->data);
+			list = list->next;
+		}
+		aim_bos_changevisibility(gaim_sess, gaim_conn,
+				AIM_VISIBILITYCHANGE_PERMITADD, buf);
+	} else {
+		list = deny; at = 0;
+		if (list == NULL) return;
+		while (list) {
+			at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", list->data);
+			list = list->next;
+		}
+		aim_bos_changevisibility(gaim_sess, gaim_conn,
+				AIM_VISIBILITYCHANGE_DENYADD, buf);
 	}
-	aim_bos_changevisibility(gaim_sess, gaim_conn,
-			AIM_VISIBILITYCHANGE_PERMITADD, buf);
-	list = deny; at = 0;
-	while (list) {
-		at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", list->data);
-		list = list->next;
-	}
-	aim_bos_changevisibility(gaim_sess, gaim_conn,
-			AIM_VISIBILITYCHANGE_DENYADD, buf);
-*/
+ */
 #endif
 }