1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00
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
..
2019-07-19 12:38:33 +02:00
2019-01-22 11:31:45 +01:00
2019-01-22 11:31:45 +01:00
2019-01-22 11:31:45 +01:00
2019-01-22 11:31:45 +01:00
2019-07-10 17:32:23 +02:00
2019-01-22 11:31:45 +01:00
2019-01-22 11:31:45 +01:00
2019-07-10 12:53:45 +02:00
2019-01-22 11:31:45 +01:00
2019-07-30 13:35:08 +02:00
2019-04-10 16:03:50 +02:00
2019-10-07 00:05:37 +02:00
2019-10-07 00:05:37 +02:00
2019-10-06 19:00:46 +02:00
2019-01-22 11:31:45 +01:00
2019-01-22 11:31:45 +01:00
2019-01-22 11:31:45 +01:00
2019-01-22 11:31:45 +01:00
2019-09-12 20:55:16 +02:00
2019-01-22 11:31:45 +01:00
2019-01-22 11:31:45 +01:00