diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-28 23:36:42 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-28 23:36:42 +0100 |
commit | 8c8c18c6fddec89cbaa83abfcac29a97ef98c294 (patch) | |
tree | f6e45d73f08a6227e526dc350604b4473e80ad8d /src/otr | |
parent | f186eb94da785f1eec33056837201c99e7e4f0d2 (diff) | |
download | profani-tty-8c8c18c6fddec89cbaa83abfcac29a97ef98c294.tar.gz |
Actually log MUC PM messages
If I'm not mistaken MUC PMs have not been logged at all if there was no other client sending carbons. This should add MUC PM logging functionality. We still need to make sure carbons log to the same file. Regards https://github.com/profanity-im/profanity/issues/1214
Diffstat (limited to 'src/otr')
-rw-r--r-- | src/otr/otr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c index 90d2fbd8..d37f2130 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -346,7 +346,7 @@ otr_on_message_send(ProfChatWin *chatwin, const char *const message, gboolean re char *encrypted = otr_encrypt_message(chatwin->barejid, message); if (encrypted) { id = message_send_chat_otr(chatwin->barejid, encrypted, request_receipt); - chat_log_otr_msg_out(chatwin->barejid, message); + chat_log_otr_msg_out(chatwin->barejid, message, NULL); chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_ENC_OTR, request_receipt); otr_free_message(encrypted); free(id); @@ -368,7 +368,7 @@ otr_on_message_send(ProfChatWin *chatwin, const char *const message, gboolean re char *otr_tagged_msg = otr_tag_message(message); id = message_send_chat_otr(chatwin->barejid, otr_tagged_msg, request_receipt); chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_ENC_PLAIN, request_receipt); - chat_log_msg_out(chatwin->barejid, message); + chat_log_msg_out(chatwin->barejid, message, NULL); free(otr_tagged_msg); free(id); return TRUE; |