Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/hooks.c @ 178:cfefae4b6de9
[/trunk] Changeset 190 by mikael
* Read history files when creating a buddy panel.
author | mikael |
---|---|
date | Thu, 05 May 2005 11:54:57 +0000 |
parents | 44c6410b4845 |
children | b5aa2b9c425a |
comparison
equal
deleted
inserted
replaced
177:a51ce78a0e2a | 178:cfefae4b6de9 |
---|---|
39 if (!roster_exists(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT)) { | 39 if (!roster_exists(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT)) { |
40 roster_add_user(jid, NULL, NULL, ROSTER_TYPE_USER); | 40 roster_add_user(jid, NULL, NULL, ROSTER_TYPE_USER); |
41 new_guy = TRUE; | 41 new_guy = TRUE; |
42 } | 42 } |
43 | 43 |
44 // Note: the hlog_write should not be called first, because in some | |
45 // cases scr_WriteIncomingMessage() will load the history and we'd | |
46 // have the message twice... | |
44 scr_WriteIncomingMessage(jid, buffer); | 47 scr_WriteIncomingMessage(jid, buffer); |
45 hlog_write_message(jid, timestamp, FALSE, buffer); | 48 hlog_write_message(jid, timestamp, FALSE, buffer); |
46 hk_ext_cmd(jid, 'M', 'R', NULL); | 49 hk_ext_cmd(jid, 'M', 'R', NULL); |
47 free(buffer); | 50 free(buffer); |
48 // We need to rebuild the list if the sender is unknown or | 51 // We need to rebuild the list if the sender is unknown or |