about summary refs log tree commit diff stats
path: root/src/command
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused code in cmd_room() about win numMichael Vetter2019-08-231-6/+0
| | | | There is actually no reason to get the window number here.
* Add 'save' command to save preferencesMichael Vetter2019-08-024-0/+26
| | | | | | | Most applications have an 'apply changes' button. This makes testing easier too. Implement https://github.com/profanity-im/profanity/issues/1164
* Fix 3 leaks in cmd_funcsMichael Vetter2019-07-221-0/+4
|
* Fix several memleaks im cmd_ac.cMichael Vetter2019-07-221-0/+6
| | | | Exiting without freeing in some cases.
* Fix double initialization of loop iteratorMichael Vetter2019-07-221-1/+0
|
* Guard against arg being NULL in cmd_funcsMichael Vetter2019-07-221-0/+20
| | | | | | | | This should actually never happen because we have the mechanism that checks the commands. But let's do it in case we break something in that mechanism and to make clang happy. Fixes clangs: 'Argument with 'nonnull' attribute passed null'
* Merge pull request #1154 from optmzr/issue-1099Michael Vetter2019-07-201-45/+50
|\ | | | | Always check for directory changes with sendfile auto completion
| * Always check for directory changes with sendfile auto completionWilliam Wennerström2019-07-201-45/+50
| | | | | | | | | | | | | | | | | | | | Instead of only checking for files when 'last_directory' has changed, do it every time. Add autocomplete_update function that updates the items while retaining last_found and search_str. Fixes #1099
* | Fix segfault in /cmd execMichael Vetter2019-07-121-0/+5
|/ | | | Test for correct number of arguments before using argument.
* Add option to set all window related time formatsMichael Vetter2019-06-173-4/+51
| | | | | | | | | | | | | | | | | | | Implements feature requested at: https://github.com/profanity-im/profanity/issues/632 So instead of: /time console set <format> /time chat set <format> /time muc set <format> /time mucconfig set <format> /time private set <format> /time xml set <format> As a short cut the user can do: /time all set <format> Excluding statusbar and lastactivity settings since they are not for main windows, but used slightly differently.
* Add myself to copyrightMichael Vetter2019-06-172-0/+2
| | | | Like discussed with James.
* Use profanity channel as exampleMichael Vetter2019-06-171-3/+3
|
* Merge pull request #1123 from profanity-im/fix/1093-already-started-messageMichael Vetter2019-06-071-40/+25
|\ | | | | Print omemo start related msgs into correct window
| * Refactor cmd_omemo_startMichael Vetter2019-06-071-38/+23
| | | | | | | | | | | | | | | | Some code was duplicated/similar. The parts about using a chatwin while being started from another window (recipient provided) and being a chatwin were the same. Like this it should be easier to read and less code.
| * Print omemo start related msgs into correct windowMichael Vetter2019-06-071-3/+3
| | | | | | | | | | Print them in the window of the contact. Not just the current window. Fix https://github.com/profanity-im/profanity/issues/1093
* | Merge pull request #1118 from profanity-im/fix/1117-omemo-autocompletion-crashMichael Vetter2019-06-071-26/+27
|\ \ | |/ |/| Only complete certain omemo commands if connected
| * Only complete certain omemo commands if connectedMichael Vetter2019-06-061-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the omemo commands depend on the roster being present. Several of those functions call `assert()` if that's not the case. Modify omemo autocompletion in such a way that only things that don't need the roster will be completed. Only works on first level. When typing `/omemo` it will still complete to `/omemo start` but not offer suggestions for that, but print a message that you need to be connected. Fix https://github.com/profanity-im/profanity/issues/1117
* | Merge pull request #1121 from profanity-im/feature/notify-plugin-failMichael Vetter2019-06-071-4/+8
|\ \ | | | | | | Improve plugin load/install failure message
| * | Improve plugin load/install failure messageMichael Vetter2019-06-071-4/+8
| |/ | | | | | | | | | | In case Python or C plugins are disabled install/load failed silently. Notify the user that we can't load them because profanity was built without support for plugins.
* | Check for sane argument in autoconnect setMichael Vetter2019-06-051-4/+8
| | | | | | | | | | Check that user doesnt do `/autoconnect set `. Which would result in: `Account '(null)' does not exist`.
* | Check if valid account before setting autoconnectMichael Vetter2019-06-051-3/+7
|/ | | | Fixes https://github.com/profanity-im/profanity/issues/1112
* Force UI update before generating OMEMO crypto materialsWilliam Wennerström2019-05-211-0/+1
|
* Merge pull request #1084 from jubalh/occupants-charMichael Vetter2019-05-033-3/+35
|\ | | | | Add occupants char
| * Add occupants charMichael Vetter2019-05-023-3/+35
| | | | | | | | | | | | | | `/occupants char` now sets a character that is displayed before the nick in MUCs. Similar like `/roster char` is displaying a char for the roster. Regards #690
* | Update profanity URL in /tiny exampleMichael Vetter2019-05-031-1/+1
|/ | | | Regards https://github.com/profanity-im/profanity/issues/1085
* Add occupants wrap to helpMichael Vetter2019-04-241-2/+4
|
* Fix occupants header char messageMichael Vetter2019-04-241-2/+2
|
* Add occupants wrap optionMichael Vetter2019-04-242-0/+17
| | | | | | | Wrapping for the occupants panel like already exists for the roster panel. See `/occupants wrap on`. Regards https://github.com/boothj5/profanity/issues/690
* Put occupants update into own functionMichael Vetter2019-04-231-34/+3
|
* Add occupants header charMichael Vetter2019-04-233-2/+70
| | | | | | | | `/occupants header char` now sets a character that is displayed before the role (moderator, visitor..) in a room. Similar to `/roster header char` is displaying a char for the roster. Regards https://github.com/boothj5/profanity/issues/690
* Add occupants indent autocompletionMichael Vetter2019-04-201-0/+1
|
* Allow setting occupants indent outside of MUCMichael Vetter2019-04-201-32/+31
| | | | And when not connected.
* Add /occupants indent commandMichael Vetter2019-04-182-2/+36
| | | | | | | | Roster has a `/roster contact indent` option. Now we have the same for occupants. So contacts in roster and in MUC can have configurable indentation. Regards https://github.com/boothj5/profanity/issues/690
* Fix typo in /help rosterMichael Vetter2019-04-181-1/+1
|
* Add OMEMO policyPaul Fariello2019-04-174-3/+56
| | | | | | | | | | | | There is 3 policy: - manual: OMEMO session are only started manually - automatic: OMEMO session are only started if they have been started manually before - always: OMEMO session are always started unless they have been ended manually before Closes #1040 and fixes #1052
* Merge pull request #1066 from ↵Michael Vetter2019-04-171-6/+6
|\ | | | | | | | | paulfariello/hotfix/OMEMO-ensure-muc-is-nonanonymous Ensure MUC is Non-Anonymous before starting OMEMO
| * Ensure MUC is Non-Anonymous before starting OMEMOPaul Fariello2019-04-171-6/+6
| | | | | | | | | | | | Store MUC anonymous type in mucwin for that purpose. Fixes #1065
* | Alert about long OMEMO cryptographic generationPaul Fariello2019-04-171-0/+1
|/ | | | Fixes #1055
* Support contact name in /omemo fingerprint commandPaul Fariello2019-04-101-4/+9
|
* OMEMO should be written uppercasePaul Fariello2019-04-101-10/+10
|
* Add /omemo char commandPaul Fariello2019-04-103-1/+25
|
* Automatically starts OMEMO if one identity is trustedPaul Fariello2019-04-101-0/+50
|
* Add OMEMO in prefs commandPaul Fariello2019-04-103-2/+8
|
* Add clear_device_list commandPaul Fariello2019-04-104-4/+28
|
* Show all device fingerprint for current accountPaul Fariello2019-04-101-1/+1
|
* Print fingerprint after trust and untrust commandPaul Fariello2019-04-101-0/+34
|
* Add fingerprint autocompletionPaul Fariello2019-04-101-0/+26
|
* Use /omemo fingerprint to show contact fingerprintsPaul Fariello2019-04-103-5/+50
| | | | Don't print fingerprints when they are received
* Add OMEMO log commandPaul Fariello2019-04-104-0/+49
|
* Add OMEMO end commandPaul Fariello2019-04-104-0/+46
|