about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to use file streamWilliam Wennerström2020-11-161-46/+38
|
* Initial /sendfile OMEMO encryptionWilliam Wennerström2020-11-161-33/+100
|
* Declare counter var inside loopMichael Vetter2020-11-091-10/+5
| | | | We require c99/gnu99 anyways.
* Fix lastactivity behaviourMichael Vetter2020-07-221-18/+28
| | | | | | | | | | | | | Autocomplete only completed on|off. Now: `/lastactivity get` -> get server uptime `/lastactivity get <jid>` -> get user lastactivity `/lastactivity set on` -> enable for self `/lastactivity set off` -> disable for self Fix https://github.com/profanity-im/profanity/issues/1411
* Remove `/tiny` commandMichael Vetter2020-07-101-53/+0
| | | | | | boothj5 gave his okay too. Fix https://github.com/profanity-im/profanity/issues/1370
* Add forgotten file..Michael Vetter2020-07-101-2/+2
| | | | Belongs to 95ab7ee062b9fbeea73b90f69c6fef3325f880c9
* Setting: only write in console upon muc mentionMichael Vetter2020-07-101-4/+8
| | | | | | `/console muc mention` additionally to `first|none|all`. Fix https://github.com/profanity-im/profanity/issues/1371
* Merge branch 'master' of github.com:profanity-im/profanityMichael Vetter2020-07-101-14/+15
|\
| * Dont hilight console once all messages have been readMichael Vetter2020-07-091-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we receive a message we get: << room message: eagle@conference.anoxinon.me (win 2) Same for private chats and regular chats. And several other kinds of notifications. If we only receive notifications from a chat window it would be nice to also clear the hilight on the console window since we already catched up by reading the actual message in the chat window. Probably not the best description :-) I hope you get it.. Regards https://github.com/profanity-im/profanity/issues/1399
* | OX: XEP-0373: OpenPGP for XMPP - Version 0.5.0 (2020-06-19)DebXWoody2020-07-101-0/+12
|/ | | | | | | | | | | Discovering Public Keys via PEP * 4.3 Discovering Public Keys of a User * 4.4 Requesting Public Keys * Import Public Keys into GnuPG's local keyring. Issue: #1331
* Apply coding styleMichael Vetter2020-07-071-1153/+1107
|
* Revert "Apply coding style"Michael Vetter2020-07-071-1130/+1176
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* 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
|