comparison src/server.c @ 319:cea40691706c

[gaim-migrate @ 329] A few good oscar changes before release. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 02 Jun 2000 19:45:16 +0000
parents 35796808896a
children f3c8d79688db
comparison
equal deleted inserted replaced
318:35796808896a 319:cea40691706c
297 n += g_snprintf(buf + n, sizeof(buf) - n, " %s", normalize(buddies->data)); 297 n += g_snprintf(buf + n, sizeof(buf) - n, " %s", normalize(buddies->data));
298 buddies = buddies->next; 298 buddies = buddies->next;
299 } 299 }
300 sflap_send(buf, -1, TYPE_DATA); 300 sflap_send(buf, -1, TYPE_DATA);
301 #else 301 #else
302 /* oscar you have to add them one name at a time, except at login */ 302 char buf[MSG_LEN];
303 int n = 0;
303 while(buddies) { 304 while(buddies) {
304 serv_add_buddy((char *)buddies->data); 305 if (n > MSG_LEN - 18) {
306 aim_bos_setbuddylist(gaim_sess, gaim_conn, buf);
307 n = 0;
308 }
309 n += g_snprintf(buf + n, sizeof(buf) - n, "%s&", buddies->data);
305 buddies = buddies->next; 310 buddies = buddies->next;
306 } 311 }
312 aim_bos_setbuddylist(gaim_sess, gaim_conn, buf);
307 #endif 313 #endif
308 } 314 }
309 315
310 316
311 void serv_remove_buddy(char *name) 317 void serv_remove_buddy(char *name)