about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove "file://" from file namesMaximilian Wuttke2021-03-091-0/+3
| | | | | Rationale: When copying an image in some application, a URL instead of a path is copied to the clipboard.
* Cmd definitions: Add offline option to occupantsThorben Günther2021-03-081-2/+5
|
* Merge pull request #1495 from xenrox/offline-membersMichael Vetter2021-03-0810-10/+96
|\ | | | | MUC: Show offline members in sidebar
| * MUC: Show offline members in sidebarThorben Günther2021-03-0810-10/+96
| |
* | Prevent segfault in sv_ev_incoming_message()Michael Vetter2021-03-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regards https://github.com/profanity-im/profanity/issues/1488 Actually I would have loved to see the stanza that caused the segfault since I'm not entirely sure whether this actually means that we do something wrong earlier on. Right now I don't know why the to_jid should be empty. Let's prevent the segfault for now and see whether we get further bugreports later. Segfaulting issue got introduced with dd566d8d561099bbfc81b2fab22318bbad0cf3da.
* | Draw wintitle using fputs and fprintf instead of /bin/echo.Akce2021-02-281-25/+8
|/
* Merge pull request #1484 from kaffeekanne/calm-openbsd-syslogMichael Vetter2021-02-151-5/+5
|\ | | | | Calm OpenBSD syslog
| * Calm OpenBSD syslogkaffeekanne2021-02-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | On every write to `chatlog.db` syslog throws ``` profanity: vfprintf %s NULL in "INSERT INTO `ChatLogs` (`from_jid`, `from_resource`, `to_jid`, `to_resource`, `message`, `timestamp`, `stanza_id`, `archive_id`, `replace_id`, `type`, `encryption`) SELECT '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' WHERE NOT EXISTS (SELECT 1 FROM `ChatLogs` WHERE `archive_id` = '%s')" ``` in `/var/log/messages`. Checking for `NULL` except in the fields the DB is expected to throw errors for, satisfies OpenBSDs security measures
* | Remove forgotten debug lineMichael Vetter2021-02-151-1/+0
| |
* | Bugfix: Titlebar show name without room nameStefan2021-02-141-1/+1
|/ | | | | | | Error log: GLib-CRITICAL - g_string_insert_len: assertion 'len == 0 || val != NULL' failed Check if a room name exists, before adding the name into the title bar.
* Correct command synopsis for mamMichael Vetter2021-02-091-1/+1
|
* Use correct time for MAM messagesMichael Vetter2021-02-041-8/+17
| | | | | | We need the delay value from the <forward> element. Regards https://github.com/profanity-im/profanity/issues/660
* Add /mam commandMichael Vetter2021-01-286-3/+38
| | | | Regards https://github.com/profanity-im/profanity/issues/660
* Enable error logging on MAM RSMMichael Vetter2021-01-281-4/+1
|
* Get MAM from last 7 daysMichael Vetter2021-01-281-1/+1
| | | | Probably should make this configurable later.
* MAM: Request more pages via RSMMichael Vetter2021-01-281-6/+22
| | | | Send another request with same jid and last id we got.
* Adapt MAM RSM code to latest functionsMichael Vetter2021-01-281-3/+3
| | | | | | Some functions changed in the meantime. stanza_get_child_by_name_and_ns() got dropped and xmpp_stanza_get_child_by_name_and_ns() from newer libstrophe is used.
* wip: add rsm after we get the first couple of mam messagesMichael Vetter2021-01-283-5/+46
|
* mam: Use correct ID in rsm handlerMichael Vetter2021-01-281-3/+1
| | | | Thanks to DebXWoody for the help.
* mam: fix logging messageMichael Vetter2021-01-281-1/+1
|
* Start working on MAM RSM to get more pagesMichael Vetter2021-01-282-1/+27
| | | | Regards https://github.com/profanity-im/profanity/issues/660
* Dont reload theme when disconnecting on purposeMichael Vetter2021-01-221-21/+0
| | | | | | | | I don't see why would need to. Also this only happens upon `/disconnect` not on a network outage or server related disconnect. Fixes https://github.com/profanity-im/profanity/issues/1472
* Simplify console notification codeMichael Vetter2021-01-211-29/+15
| | | | | | | Functions had some duplicate code: * cons_show_incoming_room_message() * cons_show_incoming_message() * cons_show_incoming_private_message()
* Fix old chlog reference in helpMichael Vetter2021-01-171-7/+7
| | | | Fixes https://github.com/profanity-im/profanity/issues/1470
* Update copyrightMichael Vetter2021-01-0833-35/+35
|
* Add `/executable (urlsave|urlopen)` migrationsWilliam Wennerström2020-12-183-10/+36
|
* Remove not needed includeMichael Vetter2020-12-161-1/+0
|
* Merge pull request #1459 from wstrm/issue-1359Michael Vetter2020-12-153-91/+57
|\ | | | | Restore old behavior when executing eval_password command
| * Do not inherit stdin of main processWilliam Wennerström2020-12-151-1/+1
| | | | | | | | I see no reason to inherit the stdin, so let's have it disabled.
| * Use popen for eval_password (reintroduce old behavior)William Wennerström2020-12-151-20/+35
| | | | | | | | | | Old commit that implemented the old behavior: bc9e6b79cdc246f7e97f6ddff7ea81474a698b05
| * Refactor call_externalWilliam Wennerström2020-12-113-91/+42
| |
* | Set input window size to max window sizekaffeekanne2020-12-111-2/+2
| | | | | | | | Input window size was one cell off, therefore terminal themes with background color set were rendered incorrectly, fixes #1458
* | Remove blank line after trackbarkaffeekanne2020-12-111-2/+0
| | | | | | | | Remove added blank line after trackbar, introduced by 606c1e51e688cb111b9837579a35460508324b63
* | Remove old TODOMichael Vetter2020-12-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | It was added in f7fe87dd4e7e14112fbcb0ae8794d90ffee64f2f when I rewrote window functions to include more infos (not just char* but whole jid struct I think). The same todo was added to win_print_outgoing_muc() but removed in f3d9de133e90ed10b5b7bd61196619eab1fedb19. This TODO should have been removed in f3d9de133e90ed10b5b7bd61196619eab1fedb19 since there we added the myjid parameter.
* | Fix color for win_print_outgoing()Michael Vetter2020-12-111-1/+1
|/ | | | | | | | | | | | | Discovered by @aba-hollerer. Mistake was introduced in b6b7dd5ad497a71e250b8b3cef0bb987314b141d probably due to a wrong copy/paste. First wasn't reproducible because I had `/receipts request on` and thus win_print_outgoing_receipts() is used which has the correct THEME_TEXT_ME. Fixes https://github.com/profanity-im/profanity/issues/1441
* Adapt profanity --help outputMichael Vetter2020-12-111-1/+1
|
* Only rotate logs if user didn't specify a log fileMichael Vetter2020-12-112-2/+8
|
* Remove log_reinit()Michael Vetter2020-12-112-15/+0
| | | | Not needed anymore.
* Shared log file needs a restartMichael Vetter2020-12-112-2/+2
| | | | Tell user about this change.
* Use whole path as logfile when defined via -fMichael Vetter2020-12-111-8/+14
| | | | | | | | | `profanity -f my` created ~/.local/share/profanity/logs/my.log`. It would be nicer if one could define the actual path, so one can choose another directory or even use /dev/null. Fixes https://github.com/profanity-im/profanity/issues/1442
* Fix deadlock on error before HTTP download has begunWilliam Wennerström2020-12-101-4/+6
|
* Create download directory under XDG data pathWilliam Wennerström2020-12-101-9/+26
| | | | | * If the downloads directory does not exist, create it. * Change some cons_show to cons_show_error (because they log errors).
* Set default color for trackbarMichael Vetter2020-12-101-0/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1453
* Remove empty lineMichael Vetter2020-12-101-1/+0
|
* Remove not needed initialization in chatwin_new()Michael Vetter2020-12-101-4/+0
| | | | | | | | | | | | | | 00dbc1ba7c66c3bb6898aed26922bf5295768bb1 attempted to fix https://github.com/profanity-im/profanity/issues/1449. Here we revert the part about initializing is_omemo in chatwin_new() since this is done in win_create_chat() already. The actual mistake was the wrong cast of the muc window which is fixed by the same commit. The mistake was introduced in in 3370418d71de255c832da97113543e554ec0e86b. While being at it we also remove the is_ox initialization since this is handled in win_create_chat()/win_create_muc() too.
* Fix various typosMichael Vetter2020-12-1011-20/+20
|
* Merge pull request #1450 from wstrm/issue-1449Michael Vetter2020-12-103-30/+41
|\ | | | | Cast chat/muc window to correct type and refactor cmd_sendfile
| * Fix build failure (unused variable)William Wennerström2020-12-091-2/+2
| |
| * Remove stray +2 for path string in get_expanded_pathWilliam Wennerström2020-12-091-6/+6
| |
| * Cast chat/muc window to correct type and refactor cmd_sendfileWilliam Wennerström2020-12-092-24/+35
| | | | | | | | Fixes #1449