about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-05-22 16:42:20 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-05-22 16:42:20 +0200
commitee9ca24f8726009f78a2e192b9d29c6e57bac45d (patch)
treeff3e7f13446cede9bba20f57b0757784e1190722 /src/event
parentc8be052ec838325417d65960cfb637a7836d0170 (diff)
downloadprofani-tty-ee9ca24f8726009f78a2e192b9d29c6e57bac45d.tar.gz
Log all carbon copied messages
So far we only had the logging in sv_ev_incoming_carbon() not
sv_ev_outgoing_carbon().

Regards https://github.com/profanity-im/profanity/issues/1342
Diffstat (limited to 'src/event')
-rw-r--r--src/event/server_events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 153618f2..c1f7b90e 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -452,6 +452,7 @@ sv_ev_outgoing_carbon(ProfMessage *message)
         } else {
             chat_log_msg_out(message->from_jid->barejid, message->plain, NULL);
         }
+        log_database_add_incoming(message);
     }
 
 #ifdef HAVE_LIBGPGME