Mercurial > pidgin.yaz
comparison src/protocols/irc/irc.c @ 8352:77baefe979c6
[gaim-migrate @ 9076]
this compiles, and I don't think it breaks anything, so here's
/list support, again from our patient friend marv
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 27 Feb 2004 01:48:11 +0000 |
parents | ffa642240fc1 |
children | e3c059c3d92d |
comparison
equal
deleted
inserted
replaced
8351:ffa642240fc1 | 8352:77baefe979c6 |
---|---|
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) |