equal
deleted
inserted
replaced
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 |