1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-15 19:38:07 -04:00
profanity/src
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
..
command Revert "Fix memleak in cmd_join" 2019-10-06 22:44:35 +02:00
config Fix preferences memory leak 2019-10-05 20:45:07 +02:00
event Don't log own messages on incoming MUC 2019-10-06 22:32:58 +02:00
omemo omemo: use lower case to log info 2019-08-23 10:18:20 +02:00
otr Make sure result is always set for otr_get_policy() 2019-07-23 08:03:39 +02:00
pgp Restoration of correct GPG encryption 2019-02-20 11:53:40 +01:00
plugins Destroy hash table ein autocompleters_destroy() 2019-10-06 17:29:35 +02:00
tools Free strings in autocomplete_param_no_with_func 2019-10-06 19:05:27 +02:00
ui Merge pull request #874 from spiridoncha/master 2019-10-05 15:12:44 +02:00
xmpp Improve MUC 1:1 logging 2019-10-07 00:05:37 +02:00
common.c Check errors in is_dir() is_regular_file() 2019-10-04 23:29:10 +02:00
common.h Update copyright to include 2019 2019-01-22 11:31:45 +01:00
log.c Improve MUC 1:1 logging 2019-10-07 00:05:37 +02:00
log.h Rename prof_message_t into ProfMessage 2019-06-20 14:30:45 +02:00
main.c Use fixed email instead of PACKAGE_BUGREPORT 2019-08-23 09:40:54 +02:00
profanity.c Possibility to specify alternative config file 2019-08-02 15:55:47 +02:00
profanity.h Possibility to specify alternative config file 2019-08-02 15:55:47 +02:00