diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-07 00:01:18 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-07 00:05:37 +0200 |
commit | b3ed21366879c53792277c069766e2d7f6cd5c5b (patch) | |
tree | be1c3076f44e3368126b79bd4e13a0fb476ace2f /src/pgp | |
parent | f1d31e024cd25be5978d933968b311d3df2a71b9 (diff) | |
download | profani-tty-b3ed21366879c53792277c069766e2d7f6cd5c5b.tar.gz |
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
Diffstat (limited to 'src/pgp')
0 files changed, 0 insertions, 0 deletions