Dmitry Podgorny
2e0adbd004
chatwin: fix memory leak when load history
...
_chatwin_history() reassigns msg->plain without freeing previous
string. This leads to memory leak. As a temporary solution, free
replaced string.
Fixes #1585 .
2021-07-20 22:15:57 +03:00
Michael Vetter
8be49e9e21
Check for curl version nr
...
We use `curl_url()` since e9d587578
which according to
https://curl.se/libcurl/c/curl_url.html is only available in libcurl >= 7.62.0 .
Related to https://github.com/profanity-im/profanity/issues/1581
2021-07-20 17:26:07 +02:00
Michael Vetter
9bd635d7e6
accounts: get rid of guard around free
2021-07-17 23:13:01 +02:00
Michael Vetter
ba414eb0ac
Merge pull request #1583 from profanity-im/memleak
...
Fix memory leak in accounts_get_login_status()
2021-07-17 23:10:15 +02:00
Michael Vetter
1511e921d2
Merge pull request #1586 from profanity-im/mentions
...
Fix invalid reads on mentions in MUC
2021-07-17 20:20:00 +02:00
Dmitry Podgorny
c0ea27f2f0
Don't handle /me in the middle of a message with mentions
2021-07-17 19:36:31 +03:00
Dmitry Podgorny
a5d15e224c
Fix buffer overread in _mucwin_print_mention()
...
Offset for g_utf8_substring() is higher than the string length. We can
avoid g_utf8_substring() for the tail and simply convert starting offset
to a pointer.
2021-07-17 19:33:28 +03:00
Dmitry Podgorny
afdae6ac02
Reduce copy-paste in sv_ev_roster_received()
2021-07-17 18:12:42 +03:00
Dmitry Podgorny
e7b6051e57
Fix memory leak in accounts_get_login_status()
2021-07-17 18:11:32 +03:00
Michael Vetter
45fd229c11
Merge pull request #1579 from d3npa/patch-1
...
Fix typo in color name
2021-07-14 18:38:26 +02:00
d3npa
1759a75dad
fix typo in color name
2021-07-14 11:59:15 -04:00
Michael Vetter
275c3132a5
Start next cycle
2021-07-14 16:25:08 +02:00
Michael Vetter
563f08164e
Release 0.11.0
2021-07-14 16:23:05 +02:00
Michael Vetter
4c8b6e9d90
Merge pull request #1577 from raspbeguy/python-api-doc
...
Fix examples in python API doc.
Seems API was changed in 2016 4f7af4e429
and documentation wasn't adapted.
2021-07-13 09:27:31 +02:00
raspbeguy
c0fe3cf155
Fix typos in functions names
...
Probably a refactoring that didn't go well.
2021-07-12 16:43:48 +02:00
Michael Vetter
edb32f9798
Mention OX in README
2021-07-12 09:32:44 +02:00
Michael Vetter
73571f0aa3
Merge pull request #1576 from DebXWoody/autocomplete-untrust
...
OMEMO autocomplete untrust
2021-07-12 09:20:21 +02:00
DebXWoody
11476c3e90
OMEMO autocomplete untrust
...
Just a copy-past of autocomplete trust implementation.
2021-07-10 10:55:29 +02:00
Michael Vetter
8100dbdd6a
Add limitations info to /help editor
2021-07-08 10:54:49 +02:00
Michael Vetter
cc0bac1746
Add MAM notice to /help mam
2021-07-08 10:53:02 +02:00
Michael Vetter
20e1f16b1f
Fix segfault in /blocked with no args
...
Fix https://github.com/profanity-im/profanity/issues/1575
2021-07-06 10:21:26 +02:00
Michael Vetter
5022aeb337
Fix log rotation
...
Fix https://github.com/profanity-im/profanity/issues/1518
See
https://github.com/profanity-im/profanity/issues/1518#issuecomment-870581988
2021-07-05 11:52:06 +02:00
Michael Vetter
7de261b1c2
Merge pull request #1573 from xenrox/fix-uninitialized
...
Initialize jid
2021-07-02 08:38:26 +02:00
Michael Vetter
2cbea9daad
cmd_blocked: Exit when wrong arguments
2021-07-02 08:36:51 +02:00
Thorben Günther
34b5e0f8c6
Initialize jid
2021-07-01 21:32:23 +02:00
Michael Vetter
516fd7d909
Merge pull request #1572 from profanity-im/fix/spamreporting
...
Fix spamreporting
2021-07-01 21:10:21 +02:00
Michael Vetter
e4a62f3958
XEP-0377: Fix arg parsing
2021-07-01 20:43:17 +02:00
Michael Vetter
07bb790565
XEP-0377: Add forgotten namespace
2021-07-01 19:31:55 +02:00
Michael Vetter
3a9cffe013
Merge pull request #1566 from DebXWoody/bugfixing/ox
...
Bugfixes for OX implementation
2021-07-01 18:26:06 +02:00
Michael Vetter
7a4a78ab06
Merge pull request #1571 from profanity-im/feature/955-silence
...
Add option to only allow messages from jids in roster
2021-07-01 18:21:48 +02:00
DebXWoody
d01ba72535
OX bug fix
...
* Help / message description
* C-Code format
2021-07-01 18:08:40 +02:00
Michael Vetter
2386878c76
Add silence test stub
2021-07-01 18:07:26 +02:00
Michael Vetter
06482fdaef
Add option to only allow messages from jids in roster
...
`/silence on` will throw away all messages (type: chat, normal) that
come from jids that are not in the roster.
Implement https://github.com/profanity-im/profanity/issues/955
2021-07-01 18:02:03 +02:00
Michael Vetter
226cffe75b
Merge pull request #1569 from profanity-im/feature/1434-spam-reporting
...
Add XEP-0377: Spam Reporting
2021-07-01 17:04:04 +02:00
Michael Vetter
1d845c9ffb
Reorder /blocked commands
...
Instead of `/blocked add [<jid>] [report-abuse|report-spam [<message>]`
have:
* /blocked add [<jid>] [<message>] (like before)
* /blocked report-abuse [<jid>] [<message>]
* /blocked report-spam [<jid>] [<message>]
2021-07-01 17:02:39 +02:00
Michael Vetter
5f9eda9735
Merge pull request #1570 from xenrox/restore-status
...
Restore last status string when connecting
2021-07-01 16:23:09 +02:00
Thorben Günther
0fc3343d75
Restore last status string when connecting
2021-07-01 16:08:00 +02:00
Michael Vetter
2f533c5da4
Adjust test stub of blocking command
2021-07-01 10:38:38 +02:00
Michael Vetter
7f737a3b47
Mention feature details when not supported
...
So that we will get aware of a version mismatch.
2021-07-01 10:36:52 +02:00
Michael Vetter
aae252e1b5
Merge pull request #1529 from dustinlagoy/access-roster-from-plugins
...
Access roster from plugins
2021-07-01 09:41:07 +02:00
Dustin Lagoy
e4bf7335d8
Add unit tests for roster_get_display_name
2021-06-30 18:58:07 -04:00
Michael Vetter
31ebd6ab1c
Add XEP-0377: Spam Reporting
...
Report and block:
`/blocked add someone@domain.org report-abuse This is not nice`
`/blocked add someone@domain.org report-spam This is not nice`
Regular block:
`/blocked add someone@domain.org`
Implement https://github.com/profanity-im/profanity/issues/1434
2021-07-01 00:14:32 +02:00
Michael Vetter
dc79c514be
Fix /disco info contact address header
...
Only display server contact information heading when we have actual
addresses.
2021-06-30 13:58:28 +02:00
Michael Vetter
a46c4443e3
Fix segfault when aesgcm url isn't the expected size
...
Fixes the bug mentioned in
https://github.com/profanity-im/profanity/issues/1478#issuecomment-794161606
The rest of https://github.com/profanity-im/profanity/issues/1478 I
can't reproduce. Seems to work fine.
2021-06-30 12:27:11 +02:00
Michael Vetter
f30a9e1256
Merge pull request #1567 from profanity-im/feature/1524-contact
...
Add support for XEP-0157 server contact information discovery
2021-06-30 11:48:50 +02:00
Michael Vetter
3d5e59895b
Adjust contact addresses output to the rest of disco info
...
Format the output of cons_show_disco_contact_information() so that it matches cons_show_disco_info().
2021-06-30 11:30:02 +02:00
Michael Vetter
c847a8d662
command: Mention xep-0157 in /disco info
2021-06-30 11:24:38 +02:00
Michael Vetter
817a6bff54
XEP-0157: Print all available addresses
2021-06-30 11:23:22 +02:00
Michael Vetter
ef96bea82e
XEP-0157: Print contact addresses
2021-06-30 10:45:59 +02:00
Michael Vetter
2f5aa124ca
XEP-0157: Parse contact address stanza
2021-06-29 22:52:45 +02:00