about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* ox: Use connection_create_stanza_id() instead of xmpp_uuid_gen()Michael Vetter2022-05-031-4/+4
|
* ox: implement `/ox end`Michael Vetter2022-05-031-0/+12
| | | | We also need to be able to stop an ox conversation :-)
* ox: use iq_id_handler_add instead of xmpp_id_handler_addMichael Vetter2022-05-031-6/+6
|
* ox: use iq_send_stanza instead of xmpp_sendMichael Vetter2022-05-031-4/+10
|
* ox: use pubsub acces model open when announce ox public keyMichael Vetter2022-05-031-0/+7
|
* Restore default behaviour for stampsMichael Vetter2022-05-032-2/+2
| | | | | | | | | | | | @mdosch discovered that we now don't print `:` for messages from others anymore. Until https://github.com/profanity-im/profanity/pull/1663#issuecomment-1114625151 is fixed lets restore the default behaviour to always add `:` in `_win_print_internal()`. The result will be that a stamp set to `-->` will also look like `-->:`.
* Fix autocomplete for `/ox discover`.Martin Dosch2022-05-021-1/+1
|
* ox: add jid autocompletion for /ox requestMichael Vetter2022-05-021-0/+5
|
* Use profanity.001.log instead of profanity.log.001 for rotated logsMichael Vetter2022-04-291-8/+13
| | | | | | | | Rotated log files will now be: `.local/share/profanity/logs/profanity.001.log` We only use logrotation if we use the default log file ending with .log. So Replacing the `.` should be fine. User supplied log files are not rotated.
* Use 3 digits for rotated logfilesMichael Vetter2022-04-291-3/+3
| | | | profanity.log.001 -> 999.
* Set default max log size to 10MBMichael Vetter2022-04-291-1/+1
| | | | In case logrotate is on.
* Merge pull request #1700 from profanity-im/feat/change-chatlogMichael Vetter2022-04-291-3/+3
|\ | | | | Use ISO8601 as date format in log files
| * Use ISO8601 for log filesMichael Vetter2022-04-291-1/+1
| |
| * Use ISO8601 for chatlogsMichael Vetter2022-04-291-2/+2
| | | | | | | | For both 1:1 and groupchat.
* | Merge branch 'master' into add_stamp_settingsMichael Vetter2022-04-2819-308/+333
|\|
| * Merge pull request #1697 from cockroach/feature/offline-muc-notificationsMichael Vetter2022-04-288-1/+62
| |\ | | | | | | Add support for offline MUC notifications
| | * Add support for offline MUC notificationsStefan Ott2022-04-238-1/+62
| | |
| * | Fix ox autocompletionMichael Vetter2022-04-281-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes this happened: `ox d<tab>` → `/ox request` `ox a<tab>` → `/ox request` `ox c<tab>` → `/ox keys` `ox s<tab>` → `/ox keys` `ox e<tab>` → `/ox keys` We didn't reset the ox_*_ac variables.
| * | ox: group online autocompletion togetherMichael Vetter2022-04-281-10/+5
| | |
| * | ox: dont print empty body messageMichael Vetter2022-04-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix https://github.com/profanity-im/profanity/issues/1693 ``` @StefanKropp @DebXWoody please check `_handle_ox_chat()` I don't understand what you are doing there. 1) First plain is assigned `message->plain = p_ox_gpg_decrypt(xmpp_stanza_get_text(ox));` and then in the same if block you overwrite this with `message->plain = xmpp_stanza_get_text(b);` without freeing the old value as far as I can see. 2) Sometimes even doing `message->plain = "OX error: No payload found";`. Shouldn't there be a `strdup()`? I think later on we try to free the whole message struct. So we can't mix this static things. ```
| * | Merge pull request #1699 from profanity-im/1698-fixoxabrtMichael Vetter2022-04-272-7/+6
| |\ \ | | | | | | | | Fix SIGABRT when using wrong argument order for receiving ox key
| | * | ox: print invalid fingerprint instead of abortingMichael Vetter2022-04-271-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Asserting here is not the right thing to do at all. A person could have a typo in the fingerprint. Or like in the case of the reported bug just confuse the arguments. An additional check for valid jid should be added later to the calling function maybe. Fix https://github.com/profanity-im/profanity/issues/1698
| | * | ox: print bad usage instead of custom messageMichael Vetter2022-04-271-1/+1
| | | |
| | * | Remove commentMichael Vetter2022-04-271-5/+0
| | |/
| * / ox: remove commentMichael Vetter2022-04-271-4/+0
| |/
| * Fix typo Annonuce -> AnnounceMichael Vetter2022-04-141-4/+4
| |
| * Fix typo: paylod -> payloadMichael Vetter2022-04-121-1/+1
| |
| * Show return symbol for embedded newlinesPaul Fertser2022-04-121-1/+24
| | | | | | | | | | | | | | | | | | When editing multi-line messages or comments everything past the first newline becomes invisible. This patch fixes it by substituting a Unicode symbol for "return" instead of printing the newline as is. On locales where it's not available single backslash is used instead.
| * Handle input win redisplay via Readline hookPaul Fertser2022-04-121-3/+10
| | | | | | | | | | Allow Readline to control when to redisplay the input line. This makes text entered via /editor visible after editor is closed.
| * Show Readline prompt in input windowPaul Fertser2022-04-121-0/+7
| | | | | | | | | | When doing an interactive search the prompt is needed to show the current state of the search to avoid confusion.
| * Allow /editor while not connectedPaul Fertser2022-04-121-7/+0
| | | | | | | | | | Since /editor can be used also for commands it doesn't make sense to restrict it to only connected state.
| * Dont show presence status changes by defaultMichael Vetter2022-04-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | Dont show presence status changes by default in chat and muc windows. Users repeatedly ask how to change this setting in the MUC. We have it in the FAQ since a long time. And most people I know change this setting, including me. So it looks like it's time to change this default.
| * Merge pull request #1674 from paulfertser/allow-bold-for-default-coloursMichael Vetter2022-04-041-12/+13
| |\ | | | | | | Allow bold for default colours
| | * Allow bold for default coloursPaul Fertser2022-04-011-12/+13
| | |
| * | Merge pull request #1681 from akaWolf/fix_theme_load_non_existMichael Vetter2022-04-031-0/+3
| |\ \ | | | | | | | | | | | | | | | | Fix theme load When we execute `/theme load somethingthatdoesntexist` it still loaded some colors wrongly.
| | * | disable execution of colors-changing code when call for theme load and it ↵Artjom Vejsel2022-04-021-0/+3
| | |/ | | | | | | | | | doesn't exist
| * | Merge pull request #1675 from paulfertser/fix-no-me-historyMichael Vetter2022-04-031-0/+1
| |\ \ | | | | | | | | Use correct colour for their nick when showing history
| | * | Use correct colour for their nick when showing historyPaul Fertser2022-04-011-0/+1
| | |/
| * | Include `config.h` in `src/config.cafile.c`Maxi Wuttke2022-04-021-0/+2
| | | | | | | | | | | | See <https://github.com/profanity-im/profanity/issues/1512>
| * | Fix a segfault when uploading or downloading filesMaxi Wuttke2022-04-022-2/+2
| |/ | | | | | | The variable `ccount->tls_policy` was not null-tested before `strcmp`.
| * Fix logging (this time for real)Steffen Jaeckel2022-04-011-1/+7
| | | | | | | | | | | | | | | | | | | | ... I hope ... We also need to create the path where the logs are stored. Fixup of d82f2f293b056965fc0bed2b24820961885ab90b Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * fix path where logs are storedSteffen Jaeckel2022-04-011-1/+3
| | | | | | | | | | | | | | 43e5f15e66b83ac8f3d57d2ffc7babf57873c51c broke the creation of the path where chatlogs are stored. This is fixed now. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * Merge pull request #1664 from paulfertser/tab-completion-cleanupMichael Vetter2022-04-011-41/+11
| |\ | | | | | | Tab completion code simplification
| | * Tab completion code simplificationPaul Fertser2022-03-301-41/+11
| | | | | | | | | | | | | | | | | | Factor out common code for Tab and Shift-Tab in a separate function. No functional change.
| * | Merge pull request #1667 from paulfertser/fix-screen-arrows-bindingsMichael Vetter2022-04-011-0/+3
| |\ \ | | | | | | | | Add Alt/Ctrl-arrows combinations for GNU Screen
| | * | Add Alt/Ctrl-arrows combinations for GNU ScreenPaul Fertser2022-03-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | GNU Screen terminal emulator is modelled after VT100, its key bindings for "application mode" (which profanity enables on startup) can be seen with this: info screen "Input Translation".
| * | | Merge pull request #1669 from paulfertser/make-rl-functions-bindableMichael Vetter2022-04-011-0/+5
| |\ \ \ | | | | | | | | | | Make all existing input functions bindable from config
| | * | | Make all existing input functions bindable from configPaul Fertser2022-03-301-0/+5
| | |/ /
| * | | Merge pull request #1670 from profanity-im/moar-cleanupMichael Vetter2022-04-013-47/+59
| |\ \ \ | | | | | | | | | | Even moar cleanup
| | * | | fix `account set theme` helpSteffen Jaeckel2022-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>