Mercurial > hg
comparison mcabber/src/hooks.c @ 184:b5aa2b9c425a
[/trunk] Changeset 196 by mikael
* Don't use a char* as prefix, but split it to timestamp + flags.
* Don't use a boolean for timestamp, use a time_t (actually we always
use a timestamp so the bool made no sense...).
author | mikael |
---|---|
date | Thu, 05 May 2005 19:38:44 +0000 |
parents | cfefae4b6de9 |
children | 9c2023d60986 |
comparison
equal
deleted
inserted
replaced
183:c658c131ea10 | 184:b5aa2b9c425a |
---|---|
42 } | 42 } |
43 | 43 |
44 // Note: the hlog_write should not be called first, because in some | 44 // Note: the hlog_write should not be called first, because in some |
45 // cases scr_WriteIncomingMessage() will load the history and we'd | 45 // cases scr_WriteIncomingMessage() will load the history and we'd |
46 // have the message twice... | 46 // have the message twice... |
47 scr_WriteIncomingMessage(jid, buffer); | 47 scr_WriteIncomingMessage(jid, buffer, timestamp); |
48 hlog_write_message(jid, timestamp, FALSE, buffer); | 48 hlog_write_message(jid, timestamp, FALSE, buffer); |
49 hk_ext_cmd(jid, 'M', 'R', NULL); | 49 hk_ext_cmd(jid, 'M', 'R', NULL); |
50 free(buffer); | 50 free(buffer); |
51 // 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 |
52 // if the sender is offline/invisible and hide_offline_buddies is set | 52 // if the sender is offline/invisible and hide_offline_buddies is set |