Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/server.c Fri Jun 02 18:59:27 2000 +0000 +++ b/src/server.c Fri Jun 02 19:45:16 2000 +0000 @@ -299,11 +299,17 @@ } sflap_send(buf, -1, TYPE_DATA); #else - /* oscar you have to add them one name at a time, except at login */ + char buf[MSG_LEN]; + int n = 0; while(buddies) { - serv_add_buddy((char *)buddies->data); + if (n > MSG_LEN - 18) { + aim_bos_setbuddylist(gaim_sess, gaim_conn, buf); + n = 0; + } + n += g_snprintf(buf + n, sizeof(buf) - n, "%s&", buddies->data); buddies = buddies->next; } + aim_bos_setbuddylist(gaim_sess, gaim_conn, buf); #endif }