| 486 static GaimRoomlist *irc_roomlist_get_list(GaimConnection *gc) |
486 static GaimRoomlist *irc_roomlist_get_list(GaimConnection *gc) |
| 487 { |
487 { |
| 488 struct irc_conn *irc; |
488 struct irc_conn *irc; |
| 489 GList *fields = NULL; |
489 GList *fields = NULL; |
| 490 GaimRoomlistField *f; |
490 GaimRoomlistField *f; |
| |
491 char *buf; |
| 491 |
492 |
| 492 irc = gc->proto_data; |
493 irc = gc->proto_data; |
| 493 |
494 |
| 494 if (irc->roomlist) |
495 if (irc->roomlist) |
| 495 gaim_roomlist_unref(irc->roomlist); |
496 gaim_roomlist_unref(irc->roomlist); |
| 505 f = gaim_roomlist_field_new(GAIM_ROOMLIST_FIELD_STRING, _("Topic"), "topic", FALSE); |
506 f = gaim_roomlist_field_new(GAIM_ROOMLIST_FIELD_STRING, _("Topic"), "topic", FALSE); |
| 506 fields = g_list_append(fields, f); |
507 fields = g_list_append(fields, f); |
| 507 |
508 |
| 508 gaim_roomlist_set_fields(irc->roomlist, fields); |
509 gaim_roomlist_set_fields(irc->roomlist, fields); |
| 509 |
510 |
| 510 irc_cmd_list(irc, "LIST", NULL, NULL); |
511 buf = irc_format(irc, "v", "LIST"); |
| |
512 irc_send(irc, buf); |
| |
513 g_free(buf); |
| 511 |
514 |
| 512 return irc->roomlist; |
515 return irc->roomlist; |
| 513 } |
516 } |
| 514 |
517 |
| 515 static void irc_roomlist_cancel(GaimRoomlist *list) |
518 static void irc_roomlist_cancel(GaimRoomlist *list) |