- dc_getpeerlistasync(fn, (void (*)(struct dc_fnetnode *, int, void *))getpeerlistcb, data);
- updatewrite(data);
+ conv = serv_got_joined_chat(data->gc, fn->id, icswcstombs(fn->name, "UTF-8", NULL));
+ ul = fl = NULL;
+ for(peer = fn->peers; peer != NULL; peer = peer->next) {
+ buf = icwcstombs(peer->nick, "UTF-8");
+ ul = g_list_append(ul, buf);
+ fl = g_list_append(fl, GINT_TO_POINTER(0));
+ }
+ gaim_conv_chat_add_users(GAIM_CONV_CHAT(conv), ul, NULL, fl, FALSE);
+ for(c = ul; c != NULL; c = c->next)
+ free(c->data);
+ g_list_free(ul);
+ g_list_free(fl);
+}
+
+static char *gi_cbname(GaimConnection *gc, int id, const char *who)
+{
+ return(g_strdup_printf("%i:%s", id, who));