about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Make cmd_account saferMichael Vetter2019-10-101-2/+6
|
* Revert "Fix memleak in cmd_join"Michael Vetter2019-10-061-5/+0
| | | | This reverts commit 1746f5f8a80f78a02f79a9a17f29ebb0a7b179ec.
* Fix memleak in cmd_joinMichael Vetter2019-10-061-0/+5
| | | | | | Free `room` string in case we allocated it ourselves. Regards https://github.com/profanity-im/profanity/issues/1019
* Free strings in all cases in cmd_roomsMichael Vetter2019-10-061-0/+3
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Free options in error case for cmd_connect()Michael Vetter2019-10-061-0/+5
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Add /clear autocompletion and improve helpMichael Vetter2019-10-051-1/+23
| | | | | | | | | | | Regards https://github.com/profanity-im/profanity/issues/855 https://github.com/profanity-im/profanity/pull/874 brought us the `/clear` command. The author of that patch couldn't follow up with the review boothj5 did. So the autocompletion and updated help was missing. This commit adds it.
* Merge remote-tracking branch 'philipflohr/master'Michael Vetter2019-10-051-10/+3
|\
| * Don't stop plugin installation if given path points to a directoryPhilip Flohr2019-02-261-11/+3
| | | | | | | | | | | | | | The command "/plugins install <path_to_folder> should install all plugins in the given folder. This commit removes the check if the path points to a file (which is repeated in the section installing a plugin from file) and makes the existing code installing multiple plugins accessible
* | Introduce /reload commandMichael Vetter2019-10-041-0/+9
| | | | | | | | | | | | This command reloads the configuration file. Fix https://github.com/profanity-im/profanity/issues/627
* | Fix typo conact -> contactMichael Vetter2019-09-291-4/+4
| |
* | Use helper function for cmd_statusMichael Vetter2019-09-291-15/+13
| |
* | Allow pasing a jid to info command in chat windowMichael Vetter2019-09-291-12/+18
| | | | | | | | | | | | | | If we pass a jid/nick to `/info` in a chat window we will still get the output. But on the console window. Regards https://github.com/profanity-im/profanity/issues/1194
* | Allow pasing a jid to status command in chat windowMichael Vetter2019-09-291-2/+10
| | | | | | | | Regards https://github.com/profanity-im/profanity/issues/1194
* | 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-021-0/+10
| | | | | | | | | | | | | | 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
| |
* | 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'
* | 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-171-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | 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 #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
| |
* | Add occupants charMichael Vetter2019-05-021-0/+17
| | | | | | | | | | | | | | `/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
* | Add occupants wrap optionMichael Vetter2019-04-241-0/+11
| | | | | | | | | | | | | | 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-231-0/+43
| | | | | | | | | | | | | | | | `/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
* | Allow setting occupants indent outside of MUCMichael Vetter2019-04-201-32/+31
| | | | | | | | And when not connected.
* | Add /occupants indent commandMichael Vetter2019-04-181-0/+32
| | | | | | | | | | | | | | | | 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
* | Add OMEMO policyPaul Fariello2019-04-171-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | 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
| |
* | Add /omemo char commandPaul Fariello2019-04-101-0/+19
| |
* | Automatically starts OMEMO if one identity is trustedPaul Fariello2019-04-101-0/+50
| |
* | Add OMEMO in prefs commandPaul Fariello2019-04-101-0/+4
| |
* | Add clear_device_list commandPaul Fariello2019-04-101-0/+19
| |
* | Show all device fingerprint for current accountPaul Fariello2019-04-101-1/+1
| |
* | Print fingerprint after trust and untrust commandPaul Fariello2019-04-101-0/+34
| |
* | Use /omemo fingerprint to show contact fingerprintsPaul Fariello2019-04-101-3/+43
| | | | | | | | Don't print fingerprints when they are received
* | Add OMEMO log commandPaul Fariello2019-04-101-0/+30
| |
* | Add OMEMO end commandPaul Fariello2019-04-101-0/+41
| |
* | Revert "Ensure room isn't anonymous"Paul Fariello2019-04-101-4/+0
| | | | | | | | This reverts commit 733e1a24c7e08dde6aa2c15ec4528220aa360845.
* | Ensure room isn't anonymousPaul Fariello2019-04-101-0/+4
| |
* | Cosmetics rename variable barejid into roomjidPaul Fariello2019-04-101-1/+1
| |
* | Allow to start OMEMO in MUCPaul Fariello2019-04-101-0/+8
| |