about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* CosmeticPaul Fariello2021-08-201-1/+0
|
* OMEMO: Fix precondition-not-met handlingPaul Fariello2021-08-192-6/+15
|
* Create devicelist if it doesn't existsPaul Fariello2021-08-191-1/+18
|
* OMEMO: try device list creation and reconfigure on precondition-not-metPaul Fariello2021-08-193-8/+26
|
* Ensure devicelist access model is configured before updating itPaul Fariello2021-08-193-24/+96
|
* omemo: always free error and print warningMichael Vetter2021-07-221-0/+9
| | | | Fix https://github.com/profanity-im/profanity/issues/1584
* chatwin: fix memory leak when load historyDmitry Podgorny2021-07-201-0/+4
| | | | | | | | _chatwin_history() reassigns msg->plain without freeing previous string. This leads to memory leak. As a temporary solution, free replaced string. Fixes #1585.
* accounts: get rid of guard around freeMichael Vetter2021-07-171-11/+5
|
* Merge pull request #1583 from profanity-im/memleakMichael Vetter2021-07-172-12/+11
|\ | | | | Fix memory leak in accounts_get_login_status()
| * Reduce copy-paste in sv_ev_roster_received()Dmitry Podgorny2021-07-171-11/+5
| |
| * Fix memory leak in accounts_get_login_status()Dmitry Podgorny2021-07-172-1/+6
| |
* | Don't handle /me in the middle of a message with mentionsDmitry Podgorny2021-07-171-2/+3
| |
* | Fix buffer overread in _mucwin_print_mention()Dmitry Podgorny2021-07-171-3/+3
|/ | | | | | 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.
* Merge pull request #1576 from DebXWoody/autocomplete-untrustMichael Vetter2021-07-121-0/+27
|\ | | | | OMEMO autocomplete untrust
| * OMEMO autocomplete untrustDebXWoody2021-07-101-0/+27
| | | | | | | | Just a copy-past of autocomplete trust implementation.
* | Add limitations info to /help editorMichael Vetter2021-07-081-1/+3
| |
* | Add MAM notice to /help mamMichael Vetter2021-07-081-1/+3
| |
* | Fix segfault in /blocked with no argsMichael Vetter2021-07-061-1/+1
| | | | | | | | Fix https://github.com/profanity-im/profanity/issues/1575
* | Fix log rotationMichael Vetter2021-07-051-1/+1
| | | | | | | | | | | | Fix https://github.com/profanity-im/profanity/issues/1518 See https://github.com/profanity-im/profanity/issues/1518#issuecomment-870581988
* | cmd_blocked: Exit when wrong argumentsMichael Vetter2021-07-021-0/+1
| |
* | Initialize jidThorben Günther2021-07-011-2/+2
| |
* | XEP-0377: Fix arg parsingMichael Vetter2021-07-011-12/+23
| |
* | XEP-0377: Add forgotten namespaceMichael Vetter2021-07-012-0/+2
| |
* | Merge pull request #1566 from DebXWoody/bugfixing/oxMichael Vetter2021-07-016-52/+88
|\ \ | | | | | | Bugfixes for OX implementation
| * | OX bug fixDebXWoody2021-07-013-22/+22
| | | | | | | | | | | | | | | * Help / message description * C-Code format
| * | OX bug fixingDebXWoody2021-06-292-6/+12
| | | | | | | | | | | | | | | * Don't decryption if there is no private key * Decryption error messages
| * | Bugfixes for OX implementationDebXWoody2021-06-285-43/+73
| |/ | | | | | | | | | | | | * autocomplete for /ox discover * fixed help description * Implemented /ox char command * Validated KeyID length
* | Add option to only allow messages from jids in rosterMichael Vetter2021-07-019-1/+62
| | | | | | | | | | | | | | `/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
* | Merge pull request #1569 from profanity-im/feature/1434-spam-reportingMichael Vetter2021-07-017-19/+91
|\ \ | | | | | | Add XEP-0377: Spam Reporting
| * | Reorder /blocked commandsMichael Vetter2021-07-013-26/+37
| | | | | | | | | | | | | | | | | | | | | | | | 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>]
| * | Mention feature details when not supportedMichael Vetter2021-07-012-7/+7
| | | | | | | | | | | | So that we will get aware of a version mismatch.
| * | Add XEP-0377: Spam ReportingMichael Vetter2021-07-015-12/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Restore last status string when connectingThorben Günther2021-07-013-5/+17
| | |
* | | Merge pull request #1529 from dustinlagoy/access-roster-from-pluginsMichael Vetter2021-07-018-0/+103
|\ \ \ | |/ / |/| | Access roster from plugins
| * | Add plugin get_barejid_from_roster functionDustin Lagoy2021-04-296-0/+38
| | |
| * | Change nick to name in api to match conventionDustin Lagoy2021-04-286-12/+12
| | | | | | | | | | | | | | | Change all instances of *get_nick_from_roster to *get_name_from_roster to match the convention of names in the roster itself.
| * | Add plugin prof_get_nick_from_roster functionDustin Lagoy2021-04-288-0/+65
| | |
* | | Fix /disco info contact address headerMichael Vetter2021-06-301-3/+5
| | | | | | | | | | | | | | | Only display server contact information heading when we have actual addresses.
* | | Fix segfault when aesgcm url isn't the expected sizeMichael Vetter2021-06-302-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Adjust contact addresses output to the rest of disco infoMichael Vetter2021-06-301-2/+3
| | | | | | | | | | | | Format the output of cons_show_disco_contact_information() so that it matches cons_show_disco_info().
* | | command: Mention xep-0157 in /disco infoMichael Vetter2021-06-301-1/+2
| | |
* | | XEP-0157: Print all available addressesMichael Vetter2021-06-302-8/+26
| | |
* | | XEP-0157: Print contact addressesMichael Vetter2021-06-305-20/+29
| | |
* | | XEP-0157: Parse contact address stanzaMichael Vetter2021-06-293-4/+56
| | |
* | | OMEMO LoggingDebXWoody2021-06-282-5/+6
| |/ |/|
* | Merge pull request #1564 from profanity-im/fix/977Michael Vetter2021-06-281-9/+0
|\ \ | | | | | | Disable notifications by default
| * | Disable notifications by defaultMichael Vetter2021-06-281-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | Since I didn't find a way to discover whether a notification server is running I decided to disable them by default. So people without one will not have such a bad lag due to timeout from libnotify. Fix https://github.com/profanity-im/profanity/issues/977
* | | Merge pull request #1563 from profanity-im/fix/1518-logrotMichael Vetter2021-06-281-7/+1
|\ \ \ | | | | | | | | Fix log rotation
| * | | Fix log rotationMichael Vetter2021-06-281-7/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://github.com/profanity-im/profanity/issues/1518 It has a good explanation of what happened: ``` Apparently, the _rotate_log_file function tried to extract user-provided name from currently used mainlogfile and restart logging to the same place after rotation, but currently this is interpreted as a full path instead. As I understand, the log rotation is no longer done with user-provided paths at all so this should be simply skipped altogether now as passing any non-NULL value is interpreted as user-provided. Replacing start with NULL appears to fix it for me. ``` In log_msg() we only rotate the log if not user_provided_log. https://github.com/profanity-im/profanity/pull/1455 changed the behaviour from user defined filename in the log dir to using full path.
* / / Escape all parameters in SQL statementsCIacademic2021-06-111-8/+5
|/ / | | | | | | | | Some more parameters might contain quotes, so escape all of them with %q by using sqlite3_mprintf.