1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00
profanity/src/xmpp
Michael Vetter b3ed213668 Improve MUC 1:1 logging
If we get a private message from a user in a MUC profanity shows this
like:
`profanity@roomsASDF.dismail.de/Martin: Hi`

This was so far logged at:
`~/.local/share/profanity/chatlogs/my-account-at-server/profanity_at_rooms.dismail.de/2019_09_04.log` as:

```
10:48:13 - profanity@rooms.dismail.de: Hi
```

So the nickname was not saved anywhere. This is due to us not knowing
whether we got a regular message from user@server.org/resource or a MUC
PM from room@server.org/user.

We now check for `<x xmlns='http://jabber.org/protocol/muc#user' />` and
add the resourcepart to the logging if we get it.

The file will be created at
`~/.local/share/profanity/chatlogs/my-account-at-server/profanity_at_rooms.dismail.de_nick` and look like:

```
23:59:43 - nick: Hi
```

Fix https://github.com/profanity-im/profanity/issues/1184
2019-10-07 00:05:37 +02:00
..
blocking.c Fix segfault in block command 2019-07-19 12:38:33 +02:00
blocking.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
bookmark.c _bookmark_destroy: follow normal logic 2019-06-20 12:37:32 +02:00
bookmark.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
capabilities.c Update copyright to include 2019 2019-01-22 11:31:45 +01:00
capabilities.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
chat_session.c Update copyright to include 2019 2019-01-22 11:31:45 +01:00
chat_session.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
chat_state.c Update copyright to include 2019 2019-01-22 11:31:45 +01:00
chat_state.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
connection.c Fix various OMEMO memleaks 2019-07-10 17:32:23 +02:00
connection.h Wait for discovery end to publish omemo devicelist and bundle 2019-04-10 17:23:46 +02:00
contact.c Update copyright to include 2019 2019-01-22 11:31:45 +01:00
contact.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
form.c Reduce codelines in form.c 2019-07-10 12:53:45 +02:00
form.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
iq.c Fix memleak in /cmd exec 2019-07-30 13:35:08 +02:00
iq.h Rename ProfIdCallback into ProfIqCallback 2019-04-10 16:03:50 +02:00
jid.c Add random string at the end of the default resource 2019-04-12 15:49:54 +02:00
jid.h Add random string at the end of the default resource 2019-04-12 15:49:54 +02:00
message.c Improve MUC 1:1 logging 2019-10-07 00:05:37 +02:00
message.h Improve MUC 1:1 logging 2019-10-07 00:05:37 +02:00
muc.c Fix invalid read in muc code 2019-10-06 19:00:46 +02:00
muc.h Ensure MUC is Non-Anonymous before starting OMEMO 2019-04-17 13:56:27 +02:00
omemo.c Fix double free in omemo_start_device_session_handle_bundle() 2019-07-08 16:36:05 +02:00
omemo.h Add trusted state after OMEMO decryption 2019-06-20 14:29:55 +02:00
presence.c Update copyright to include 2019 2019-01-22 11:31:45 +01:00
presence.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
resource.c Update copyright to include 2019 2019-01-22 11:31:45 +01:00
resource.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
roster_list.c Remove duplicate code in roster_update 2019-08-23 09:50:53 +02:00
roster_list.h statusbar: check if roster exists 2019-06-04 16:19:04 +02:00
roster.c Log alleged roster push to file 2019-09-12 20:55:16 +02:00
roster.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
session.c Call message_handlers_clear() upon disconnect 2019-06-20 12:37:32 +02:00
session.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
stanza.c Don't render (all) delayed messages as MUC history 2019-08-20 17:51:26 +02:00
stanza.h Don't render (all) delayed messages as MUC history 2019-08-20 17:51:26 +02:00
xmpp.h Call iq_handlers_clear() upon disconnect 2019-06-20 12:37:32 +02:00