about summary refs log tree commit diff stats
path: root/src/command
Commit message (Collapse)AuthorAgeFilesLines
...
* Add clipboard featureMichael Vetter2019-10-293-0/+29
| | | | | Use GTK to take the text from the clipboard. Add `/paste` command which pastes this text now to console window.
* Remove not neede freeMichael Vetter2019-10-251-1/+0
| | | | It's in the def == NULL case. So will always be noop.
* Remove /leave commandMichael Vetter2019-10-222-27/+0
| | | | | | We have `/close` which does the same and more. Regards https://github.com/profanity-im/profanity/issues/1116
* Fix memory leak in cmd_join()Dmitry Podgorny2019-10-141-1/+3
| | | | | | room is either argv[0] or allocated by GString. We have to free memory in the 2nd case. Replace argv[0] with g_strdup(argv[0]) in order to make unconditional g_free().
* 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.
* Add account clear example to helpMichael Vetter2019-10-061-1/+3
| | | | Give example on how to clear pgpkeyig.
* 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-053-6/+60
| | | | | | | | | | | 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-043-0/+23
| | | | | | | | | | | | This command reloads the configuration file. Fix https://github.com/profanity-im/profanity/issues/627
* | Mention XEP-0191 in blocked commandMichael Vetter2019-09-301-1/+1
| |
* | Document how to block users in MUCsMichael Vetter2019-09-301-2/+4
| | | | | | | | Regards https://github.com/profanity-im/profanity/issues/618
* | 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-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