Mercurial > pidgin
comparison src/server.c @ 1479:4c62ead808a2
[gaim-migrate @ 1489]
save conversation history
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 07 Feb 2001 21:46:40 +0000 |
| parents | 6650776468b3 |
| children | ba8e6e211af5 |
comparison
equal
deleted
inserted
replaced
| 1478:29d9feaf065b | 1479:4c62ead808a2 |
|---|---|
| 632 b->is_chat = TRUE; | 632 b->is_chat = TRUE; |
| 633 b->ignored = NULL; | 633 b->ignored = NULL; |
| 634 b->in_room = NULL; | 634 b->in_room = NULL; |
| 635 b->id = id; | 635 b->id = id; |
| 636 b->gc = gc; | 636 b->gc = gc; |
| 637 b->history = g_string_new(""); | |
| 637 g_snprintf(b->name, 80, "%s", name); | 638 g_snprintf(b->name, 80, "%s", name); |
| 638 | 639 |
| 639 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(b->name)) { | 640 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(b->name)) { |
| 640 FILE *fd; | 641 FILE *fd; |
| 641 char *filename; | 642 char *filename; |
| 691 while (b->ignored) { | 692 while (b->ignored) { |
| 692 g_free(b->ignored->data); | 693 g_free(b->ignored->data); |
| 693 b->ignored = g_list_remove(b->ignored, b->ignored->data); | 694 b->ignored = g_list_remove(b->ignored, b->ignored->data); |
| 694 } | 695 } |
| 695 | 696 |
| 697 g_string_free(b->history, TRUE); | |
| 696 g_free(b); | 698 g_free(b); |
| 697 } | 699 } |
| 698 | 700 |
| 699 void serv_got_chat_in(struct gaim_connection *g, int id, char *who, int whisper, char *message) | 701 void serv_got_chat_in(struct gaim_connection *g, int id, char *who, int whisper, char *message) |
| 700 { | 702 { |
