about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
Commit message (Collapse)AuthorAgeFilesLines
* Have separate settings for intypeMichael Vetter2021-05-081-1/+8
| | | | | | | | | | Old: `/intype on|of` Typing information is printed in console and titlebar. New: `/intype titlebar|console on|off` Typing information can be configured in more detail. Regards https://github.com/profanity-im/profanity/issues/1516
* OMEMO - trust mode (#1506)Stefan2021-04-171-0/+31
| | | | | | | Add OMEMO trust mode capabilities. * ToFu / first usage * blind trust * manual
* editor: make editor configurable via /executableMichael Vetter2021-04-161-0/+15
| | | | | | `/executable set editor /full/path/to/edit`. Regards https://github.com/profanity-im/profanity/issues/1521
* editor: Save temp files as .mdMichael Vetter2021-04-161-2/+2
| | | | | Probably many people render text in their head to markdown automatically.
* Editor: improve error messagesMichael Vetter2021-04-161-6/+6
|
* editor: Use g_strdup_printf() instead of g_string_new()Michael Vetter2021-04-161-11/+4
|
* Run clang-format on new editor codeMichael Vetter2021-04-161-17/+17
|
* Editor: Fix redisplayStefan2021-04-161-1/+4
|
* Editor: Use _exit() instead of exit()Stefan2021-04-161-1/+1
|
* Editor: Using preferences compose.editorStefan2021-04-161-9/+19
| | | | compose.editor is the path to the executable ( default /usr/bin/vim )
* Editor command: filename / sensible-editorStefan2021-04-161-9/+50
| | | | | | | | * Generating a unique file name in tmp_dir folder * Changed exec of vim to exec of sensible-editor * Test file exists and create file with "private" rights * Send a preview of the message in the window * Delete temp file
* Add new editor commandStefan2021-04-161-0/+40
| | | | Goal is to launch an external editor (eg vim) to edit the text there.
* OMEMO: Fail if message keys couldn't be encrypted for any recipient deviceMaximilian Wuttke2021-04-081-8/+7
| | | | | | | | | If the message (key) can't be encrypted for any device, sending the message is refused and an informative error message is presented to the user. Also, don't encrypt for the same device, since the OMEMO XEP disallows this.
* OMEMO: Remove duplicate session initalisationMaximilian Wuttke2021-04-081-16/+8
| | | | | | The function `omemo_start_session` was effectively called twice in the `/msg` command: Once in `chatwin_new` and afterwards in `cmd_msg`. I've removed the second call.
* Get rid of asprintf and _GNU_SOURCE defineMichael Vetter2021-03-301-5/+3
| | | | | | | _GNU_SOURCE was even in some files where it was not needed at all (http*). Let's replace asprintf() with g_strdup_printf().
* Fix segfault in cmd_autoaway()Michael Vetter2021-03-291-9/+12
| | | | | | | | | Two mistakes were here: * `/autoaway time away` without a time argument segfaulted * `/autoaway message away` without a mesage set to (null). We have `/autoaway message off to set it off. Also use g_strcmp0() instead of strcmp().
* Add support to register with a roomMichael Vetter2021-03-251-0/+5
| | | | | | | | | | `/affiliation register` can now be used to register a nickname with a MUC. Tested with a server without forms. Couldn't find a server which supports forms yet. Implements https://github.com/profanity-im/profanity/issues/1210
* MUC: Add voice requestThorben Günther2021-03-121-0/+5
| | | | closes https://github.com/profanity-im/profanity/issues/1211
* Dont build paths manually in cmd_funcs.cMichael Vetter2021-03-121-36/+13
| | | | | Some time ago we introduced get_expanded_path(). No need to build paths manually anymore to get ~.
* Add command to change password of logged in userThorben Günther2021-03-111-0/+27
|
* Update ui_ask_password to support confirmationThorben Günther2021-03-111-2/+2
| | | | | Just prints a different string to console. Useful for changing passwords or account registration.
* MUC: Show offline members in sidebarThorben Günther2021-03-081-0/+12
|
* Add /mam commandMichael Vetter2021-01-281-0/+8
| | | | 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
* Fix old chlog reference in helpMichael Vetter2021-01-171-7/+7
| | | | Fixes https://github.com/profanity-im/profanity/issues/1470
* Add `/executable (urlsave|urlopen)` migrationsWilliam Wennerström2020-12-181-2/+2
|
* Shared log file needs a restartMichael Vetter2020-12-111-1/+1
| | | | Tell user about this change.
* 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).
* Fix build failure (unused variable)William Wennerström2020-12-091-2/+2
|
* Cast chat/muc window to correct type and refactor cmd_sendfileWilliam Wennerström2020-12-091-24/+33
| | | | Fixes #1449
* Use get_expanded_path() in cmd_senfile()Michael Vetter2020-12-091-8/+2
|
* Remove scheme and filetype matching for url (save|open)William Wennerström2020-12-081-45/+53
|
* Fix wrong order of arguments for _url_http_methodWilliam Wennerström2020-12-071-2/+2
|
* Add tests for format_call_external_argvWilliam Wennerström2020-12-071-15/+28
|
* Fix bad order of parameters for url saveWilliam Wennerström2020-12-071-1/+8
|
* Rework url to filenameWilliam Wennerström2020-12-061-1/+0
|
* Move unique_filename_from_url functions to commonWilliam Wennerström2020-12-041-63/+2
|
* Refactor for threaded external executable for built-in download methodsWilliam Wennerström2020-12-031-171/+118
|
* Add stubsWilliam Wennerström2020-11-161-8/+14
|
* Switch to g_strerrorWilliam Wennerström2020-11-161-30/+4
|
* Add I/O error handling and use filenames instead of file descriptorsWilliam Wennerström2020-11-161-8/+2
|
* Refactor OMEMO download into AESGCMDownload toolWilliam Wennerström2020-11-161-6/+55
|
* Use fallback method when /executable urlsave is unsetWilliam Wennerström2020-11-161-6/+24
|
* Run make format on rebaseWilliam Wennerström2020-11-161-71/+65
|
* Remove unsafe Conent-Disposition inferringWilliam Wennerström2020-11-161-38/+61
|
* Infer filename from content-disposition or URLWilliam Wennerström2020-11-161-112/+131
| | | | | The Content-Disposition inferring is probably a bad idea security wise, so I am going to remove it.
* Add http_download toolWilliam Wennerström2020-11-161-3/+4
|
* WordingWilliam Wennerström2020-11-161-2/+2
|
* Remove temporary ciphertext file when finishedWilliam Wennerström2020-11-161-2/+8
|
* Remove /omemo sendfileWilliam Wennerström2020-11-161-15/+2
|