about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Apply coding styleMichael Vetter2020-07-071-1176/+1130
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* OX: Announce public key on PEPDebXWoody2020-07-061-2/+3
| | | | | | | | | | | | | | | src/pgp/gpg.c:p_ox_gpg_readkey Used to read a public key from a file. The function will return the fingerprint of the file and the base64 encoded key. src/xmpp/ox.[hc] ox_announce_public_key(const char* const filename) can be called from the /ox announce <filename> command. The key within the file will be pushed on PEP and the Metadata node will be set. Issue: #1331
* cmd_funcs.c: Remove not needed variableMichael Vetter2020-07-021-2/+1
|
* Remove prefs_free_string()Michael Vetter2020-07-021-16/+16
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Merge pull request #1374 from profanity-im/revampUrlopenMichael Vetter2020-07-021-15/+216
|\ | | | | Rework /url and /executable for filetypes
| * cmd_url_*(): use gchar instead of charMichael Vetter2020-07-021-3/+3
| |
| * cmd_url_open(): fix memleakMichael Vetter2020-07-021-0/+1
| |
| * cmd_url_*(): remove NULLing when not neededMichael Vetter2020-07-011-8/+4
| |
| * cmd_executable(): Check arg lengthsMichael Vetter2020-07-011-0/+10
| |
| * Display a message acknowledging file saving successPierre Mazière2020-06-251-0/+2
| | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * Replace /urlopen with /url and adapt /executablePierre Mazière2020-06-251-9/+201
| | | | | | | | | | | | | | | | /urlopen is replaced by /url with the following sub commands: /url open <url> /url save <url> [<path>] Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * Refactor cmd_urlopenPierre Mazière2020-06-251-16/+16
| | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* | Fix omemo otr caseMichael Vetter2020-06-291-1/+2
| | | | | | | | Fix 3afd854dc862696c4842b2ed93efcad44d617910
* | Feature request - XEP-0373: OpenPGP for XMPP (OX)DebXWoody2020-06-291-0/+163
| | | | | | | | | | | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* | cmd_funcs: fix omemo caseMichael Vetter2020-06-291-1/+2
| | | | | | | | Small mistake introduced in b7f959bab4e8ed13e8b5d638180420e497844a26.
* | Dont allow starting a PGP session while in an OMEMO sessionMichael Vetter2020-06-291-0/+5
| |
* | Clean-up: defines cmd_funcs.cDebXWoody2020-06-201-42/+6
|/
* Add option for legacy authenticationDmitry Podgorny2020-06-051-3/+30
| | | | | | | | New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
* Fix memleak againMichael Vetter2020-06-031-1/+5
| | | | | | | | | | Memleak was reinroduced in d92c576aa53505d712715b1acc6344af3262c84f It was already fixed in ac5ce105ac08f022d88d7e73dc38f2706d4c44cf But the rebase peetahs rebase ontop of master took the wrong changes. I decided to pull anyways and fix since reviewing/giving feedback without GH probably takes longer.
* Get output and error streams from the command spawned by external_call()Pierre Mazière2020-06-031-4/+5
| | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* Fix memleak in cmd_urlopen()Michael Vetter2020-05-291-1/+3
|
* Save bookmark ignore listMichael Vetter2020-05-251-1/+1
|
* Add and use connection_get_barejid()Michael Vetter2020-05-251-3/+3
| | | | Instead of connection_get_fulljid() and then creating a Jid from it.
* Add bookmark ignore add|removeMichael Vetter2020-05-241-0/+12
| | | | Regards https://github.com/profanity-im/profanity/issues/1115
* List ignored bookmarksMichael Vetter2020-05-241-0/+25
| | | | | | `/bookmarl ignore` lists the ignored bookmarks. Regards https://github.com/profanity-im/profanity/issues/1115
* Add option to add bookmark nameMichael Vetter2020-05-221-4/+5
| | | | | | | | `/bookmark add|update` got `name` field. By default localpart of JID is used (like before) but now we can set the name ourselves. Regards https://github.com/profanity-im/profanity/issues/697
* Make option to allow hiding windows with no messages in statusbarMichael Vetter2020-05-211-0/+12
| | | | | | | `statusbar.show.read` can be set to false in the config. `/statusbar show|hide read`. Implement https://github.com/profanity-im/profanity/issues/1285
* Add /executable commandMichael Vetter2020-05-201-0/+16
| | | | | This is used to set the openers for various commands. So far for /avatar and /urlopen.
* Make urlopen command configurableMichael Vetter2020-05-201-1/+1
|
* Create call_external() helper functionMichael Vetter2020-05-201-9/+1
|
* Build URL ac upon printing of message in windowMichael Vetter2020-05-201-11/+19
|
* Actually open the URLMichael Vetter2020-05-201-0/+20
|
* xep-0092: make it possible to ask servers or components for softwareMichael Vetter2020-05-141-0/+19
| | | | | | | | | | | This adds the new `/serversoftware` command. ``` /software user@domain.org/resource /serversoftware domain.org ``` Fix https://github.com/profanity-im/profanity/issues/1338
* Have proper autocompletion for /software in chat windowMichael Vetter2020-05-141-15/+21
| | | | | | | | | | | In console autocomplete from roster. In muc autocomplete from occupants lits. In 1:1 regular chat autocomplete from active resources of currently selected user (new). Also give a hint (/help resource) how to set the resource should a user choose that way. Fix https://github.com/profanity-im/profanity/issues/1337
* Remove unanimous MAM displayMichael Vetter2020-04-251-6/+0
| | | | | | For some time users could choose to have the old way "unanimous" where all the MUC history is just grey (or whatever was set). Now it is always just displayed like regular new incoming MUC text.
* Fix parsing of alias commandMichael Vetter2020-04-201-1/+1
| | | | | This actually only set the local ran pointer to NULL. But we want an effect on the outside variable.
* Add setting to not colorize own nick according to xep-0392Michael Vetter2020-03-251-0/+4
| | | | | | | | | | | | | | | | | | Some users might want there nick to always stay white (etc) for easier recognition. Now we can do `/color own off` to not generate the color based on xep-0392. The `me=` color (etc) from the theme will then be used. Once we run this command `theme_load()` is called again. And the theme looks totally wrong. We encountered this at other times already and I think it's nothing wrong with this new code here now but that there seems to be a missing closing attr for the color when drawing. Should be investigated seperately. Fix https://github.com/profanity-im/profanity/issues/1288
* Fix old typo in titlebar presenceMichael Vetter2020-03-241-1/+1
|
* titlebar: allow displaying MUC name and MUC jidMichael Vetter2020-03-241-25/+12
| | | | | | `/titlebar use name|jid` -> `/titlebar show|hide name|jid` Fix https://github.com/profanity-im/profanity/issues/1284
* Add slashguard featureMichael Vetter2020-03-181-0/+12
| | | | | New command `/slashguard` tries to protect against typing ` /quit` by not allowing a slash in the first 4 characters.
* xep-0084/avatar: add option to open avatar directlyMichael Vetter2020-03-101-1/+13
| | | | | | | | | | | Change: `/avatar me@somewhere.org` -> `/avatar get me@somewhere.org` New: `/avatar cmd feh` `/avatar open me@somewhere.org` Implement https://github.com/profanity-im/profanity/issues/1281
* Make cmd_logging() saferMichael Vetter2020-02-251-2/+3
| | | | Could be that args[1] is not set.
* get_log_file_location () should return const char*Michael Vetter2020-02-211-1/+1
| | | | Make clear that result should never be freed.
* Improve setting encryption char error handlingMichael Vetter2020-02-211-6/+15
|
* Allow utf8 symbols as omemo/pgp/otr indicator charMichael Vetter2020-02-201-182/+183
| | | | Fix https://github.com/profanity-im/profanity/issues/1264
* Add option to color MUC history like regular messagesMichael Vetter2020-02-201-4/+14
| | | | | | | | | `/logging group color` has: * `unanimous` which will color it with one unanimous color. Like it was done always. * `regular` which colors it like regular incoming messages. Regards https://github.com/profanity-im/profanity/issues/1261
* Mention how to enable unencrypted file transerMichael Vetter2020-02-171-2/+2
| | | | Regards https://github.com/profanity-im/profanity/pull/1270
* Make /sendfile in PGP session configurableMichael Vetter2020-02-171-1/+6
| | | | | | `/pgp sendfile on` allows unencrypted file transfer in an PGP session. Regards https://github.com/profanity-im/profanity/pull/1270
* Make /sendfile in OTR session configurableMichael Vetter2020-02-171-2/+16
| | | | | | `/otr sendfile on` allows unencrypted file transfer in an OMEMO session. Regards https://github.com/profanity-im/profanity/pull/1270
* Make /sendfile in OMEMO session configurableMichael Vetter2020-02-171-8/+26
| | | | | | | `/omemo sendfile on` allows unencrypted file transfer in an OMEMO session. Regards https://github.com/profanity-im/profanity/pull/1270