diff options
author | John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> | 2023-04-18 18:19:47 +0200 |
---|---|---|
committer | John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> | 2023-04-18 18:19:47 +0200 |
commit | 96ddb2399e413c46db038b1ec4820c26c27eb720 (patch) | |
tree | aa1d0d41f9863e7ad3e7a58e75b8f614ef2efcbe /src/event | |
parent | 5a1f2dedd3e2d8e74aefbfdb51c9af670c0cbbd9 (diff) | |
download | profani-tty-96ddb2399e413c46db038b1ec4820c26c27eb720.tar.gz |
Add logging consistency
Since MUC private messages are not logged by design, part where this logging happening is removed to add consistency. Add explanation in comment.
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index c1f11332..0f6df2ac 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -433,7 +433,7 @@ sv_ev_incoming_private_message(ProfMessage* message) _clean_incoming_message(message); privwin_incoming_msg(privatewin, message); - log_database_add_incoming(message); + // Intentionally skipping log to DB because we can't authenticate the sender chat_log_msg_in(message); plugins_post_priv_message_display(message->from_jid->fulljid, message->plain); @@ -457,6 +457,7 @@ sv_ev_delayed_private_message(ProfMessage* message) _clean_incoming_message(message); privwin_incoming_msg(privatewin, message); + // Intentionally skipping log to DB because we can't authenticate the sender chat_log_msg_in(message); plugins_post_priv_message_display(message->from_jid->fulljid, message->plain); |