diff src/server.c @ 242:14fc16f579c8

[gaim-migrate @ 252] More updates to oscar.c (et al.) to use libfaim. Lots of good stuff now. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 20 May 2000 07:58:50 +0000
parents 6ced2f1c8b24
children 3414ff74cb0f
line wrap: on
line diff
--- a/src/server.c	Sat May 20 06:17:50 2000 +0000
+++ b/src/server.c	Sat May 20 07:58:50 2000 +0000
@@ -53,6 +53,8 @@
 {
 #ifndef USE_OSCAR
 	toc_close();
+#else
+	oscar_close();
 #endif
         gtk_timeout_remove(idle_timer);
         idle_timer = -1;
@@ -244,6 +246,8 @@
 #ifndef USE_OSCAR
 	g_snprintf(buf, sizeof(buf), "toc_add_buddy %s", normalize(name));
 	sflap_send(buf, -1, TYPE_DATA);
+#else
+	aim_add_buddy(gaim_sess, gaim_conn, name);
 #endif
 }
 
@@ -265,6 +269,12 @@
                 buddies = buddies->next;
         }
 	sflap_send(buf, -1, TYPE_DATA);
+#else
+	/* oscar you have to add them one name at a time, except at login */
+	while(buddies) {
+		serv_add_buddy((char *)buddies->data);
+		buddies = buddies->next;
+	}
 #endif
 }
 
@@ -275,6 +285,8 @@
 #ifndef USE_OSCAR
 	g_snprintf(buf, sizeof(buf), "toc_remove_buddy %s", normalize(name));
 	sflap_send(buf, -1, TYPE_DATA);
+#else
+	aim_remove_buddy(gaim_sess, gaim_conn, name);
 #endif
 }
 
@@ -359,9 +371,7 @@
 }
 
 void serv_build_config(char *buf, int len) {
-#ifndef USE_OSCAR
 	toc_build_config(buf, len);
-#endif
 }