about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-03-28 01:19:39 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-04-06 10:50:20 +0200
commit58bef8e5923a25ec2d91e157b04479500b76e971 (patch)
tree78f4df15fe842c19c759e12af684697bb9b0711e /src
parenta0a4fd042648f0b936621b076694283dd577f016 (diff)
downloadprofani-tty-58bef8e5923a25ec2d91e157b04479500b76e971.tar.gz
db: dont log reflected MUC messages
Diffstat (limited to 'src')
-rw-r--r--src/event/server_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 6ca51bd2..d1223082 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -301,6 +301,7 @@ static void _log_muc(ProfMessage *message)
     } else {
         groupchat_log_msg_in(message->jid->barejid, message->jid->resourcepart, message->plain);
     }
+    log_database_add_incoming_muc(message);
 }
 
 void
@@ -327,7 +328,6 @@ sv_ev_room_message(ProfMessage *message)
     GList *triggers = prefs_message_get_triggers(message->plain);
 
     _clean_incoming_message(message);
-    log_database_add_incoming_muc(message);
     mucwin_incoming_msg(mucwin, message, mentions, triggers, TRUE);
 
     g_slist_free(mentions);