From 31014b5e513234e9ee7696fc88eb9cab30d8a12e Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 19 Oct 2019 23:24:33 +0200 Subject: [PATCH] Fix which message we want to log --- src/event/server_events.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/event/server_events.c b/src/event/server_events.c index 6b8792a8..cdbd5ad5 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -304,11 +304,9 @@ sv_ev_room_message(ProfMessage *message) char *mynick = muc_nick(mucwin->roomjid); - // messages from ourselves (account and this client) - if (g_strcmp0(mynick, message->jid->resourcepart) == 0 && message_is_sent_by_us(message)) { - _log_muc(message); - } else { - // messages from others + // only log message not coming from this client (but maybe same account, different client) + // our messages are logged when outgoing + if (!(g_strcmp0(mynick, message->jid->resourcepart) == 0 && message_is_sent_by_us(message))) { _log_muc(message); }