diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-12-09 10:49:19 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-12-09 10:49:19 +0100 |
commit | 22b923018ff966c9c015c15beddd37286a764e41 (patch) | |
tree | 235e11a540f687bf2b3b9471e0b6feac49be9232 /src/event | |
parent | 3e26364579d49aae70fa54addbd271b3aee3d968 (diff) | |
download | profani-tty-22b923018ff966c9c015c15beddd37286a764e41.tar.gz |
Log incoming carbons if they are no MUCPM
Regards https://github.com/profanity-im/profanity/pull/1446
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index 3e51d969..0d9d9523 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -659,14 +659,19 @@ sv_ev_incoming_carbon(ProfMessage* message) #endif } + gboolean logit = TRUE; + if (message->type == PROF_MSG_TYPE_MUCPM) { + logit = FALSE; + } + if (message->enc == PROF_MSG_ENC_OX) { - _sv_ev_incoming_ox(chatwin, new_win, message, FALSE); + _sv_ev_incoming_ox(chatwin, new_win, message, logit); } else if (message->encrypted) { - _sv_ev_incoming_pgp(chatwin, new_win, message, FALSE); + _sv_ev_incoming_pgp(chatwin, new_win, message, logit); } else if (message->enc == PROF_MSG_ENC_OMEMO) { - _sv_ev_incoming_omemo(chatwin, new_win, message, FALSE); + _sv_ev_incoming_omemo(chatwin, new_win, message, logit); } else { - _sv_ev_incoming_plain(chatwin, new_win, message, FALSE); + _sv_ev_incoming_plain(chatwin, new_win, message, logit); } rosterwin_roster(); return; |