about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | minor: using cons_bad_cmd_usage() instead of the manual handlingViachaslau Khalikin2022-09-191-3/+3
| | | | | | | | | | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | | Fix typo which catched by codespellViachaslau Khalikin2022-09-191-1/+1
| | |
* | | Print unloaded plugins which already installedViachaslau Khalikin2022-09-192-3/+14
| | | | | | | | | | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | | Fix handle cmd_plugins_uninstall without argsViachaslau Khalikin2022-09-191-1/+2
|/ / | | | | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | less strdup()+free()Steffen Jaeckel2022-09-071-6/+3
| | | | | | | | | | | | Improvement of f8ff93234eb118de2e69d0c4667a6cbbe90e8f8c Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | tell the user to which file we're loggingSteffen Jaeckel2022-09-071-0/+5
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | Tell user where the downloaded file is storedSteffen Jaeckel2022-09-071-2/+2
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | support for formatting in avatar executablenandesu-utils2022-09-062-15/+25
| | | | | | | | | | | | in before it just used the input command line as it was but this fixes this by adding formatting using `format_call_external_argv` which is already used in `url open` executable.
* | refactored call_external codenandesu-utils2022-08-271-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unluckily here the code neglected the fact that glib will set an error to a location that was pointed by the error pointer if it is not null. but it was of an undefined value hence profanity crashed. now it is null as it must be. also spawn error is returned when glib could not spawn the task for some reason like the executable file does not exist but if the exit status was non-zero it neglected the exit error and tried to output a spawn error instead. now we check whether the process that we instantiated has exited successfully also now code uses `g_spawn_check_wait_status` which `g_spawn_check_exit_status` has been aliased to.
* | fixup 11f52ad5474c7adb7f11df5b0c318597e4150312Steffen Jaeckel2022-08-081-3/+6
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | integrate XEP-0198 Stream-ManagementSteffen Jaeckel2022-08-081-0/+25
| | | | | | | | | | | | | | | | | | * save SM state and send-queue entries on disconnect * restore SM state and send-queue entries on reconnect fixes #698 Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | common: dont use GError twiceMichael Vetter2022-08-021-7/+15
| | | | | | | | | | | | We need to use a new one or call `g_clear_error()`. Fix segfault in https://github.com/profanity-im/profanity/issues/1738
* | Check for error before trying to append itMichael Vetter2022-08-021-1/+1
| | | | | | | | Related to https://github.com/profanity-im/profanity/issues/1738
* | Fix /autoaway command logicNetboy32022-07-281-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | Two issues were fixed in the parser logic: * A call to cons_bad_cmd_usage() was placed at the end of the "time" parser section that blocked reachability to both "message" and "check" parser sections. This caused "/autoaway message ..." and "/autoaway check ..." to always fail with "Invalid usage". This issue was introduced in commit 3c1e4ba. * "/autoaway message xa" with no message argument returns message set to (null). This should be fixed the same way as "/autoaway message away" was fixed in commit 3c1e4ba.
* | Display a help message upon first start of ProfanityMichael Vetter2022-07-052-1/+24
| | | | | | | | Explaining how to register/connect/set up an account.
* | Exit *_incoming_msg functions when plain message is emptyMichael Vetter2022-07-043-0/+17
| | | | | | | | Fix https://github.com/profanity-im/profanity/issues/1733
* | ox: handle empty message->plainMichael Vetter2022-07-041-0/+8
| | | | | | | | | | | | In case we dont have plain but have body, copy this (like in _sv_ev_incoming_pgp). In case we have neither, return.
* | Let slashguard ignore quoted messagesMichael Vetter2022-07-041-1/+2
| | | | | | | | | | | | This let's us whole `/me` messages and other messages starting with `>`. Fix https://github.com/profanity-im/profanity/issues/1732
* | Merge pull request #1731 from profanity-im/retrieve-enc-type-from-dbMichael Vetter2022-06-291-3/+21
|\ \ | | | | | | Retrieve enc type from db
| * | database: remove commentMichael Vetter2022-06-291-1/+1
| | |
| * | database: retrieve encryption typeMichael Vetter2022-06-291-2/+20
| | | | | | | | | | | | | | | When we get a message from the database, also retrieve the encryption type.
* | | Don't scroll if not neededMichael Vetter2022-06-291-0/+4
|/ / | | | | | | | | | | | | | | | | If we are in a window with a lot of text and press PAGE UP we scroll up and write [scrolled] in the titlebar. So far we also wrote [scrolled] in there even when actually nothing happened. Like when opening a new window (/msg someone) and there is no text inside.
* | ox: add helper message in case signcrypt doesnt workMichael Vetter2022-06-291-0/+1
| | | | | | | | | | Most likely they didnt trust/sign the key. Which is described in the profanity-ox-setup man page.
* | stanza: remove strange assignmentMichael Vetter2022-06-291-1/+1
| |
* | accounts: deduplicate code via helper functionMichael Vetter2022-06-291-116/+54
| |
* | scripts: get rid of read variableMichael Vetter2022-06-291-4/+2
| |
* | chatlog: remove unused variableMichael Vetter2022-06-291-3/+0
| |
* | database: unref dateMichael Vetter2022-06-291-1/+3
| |
* | Remove commentMichael Vetter2022-06-291-10/+0
| |
* | Move ox_gpg_public_keys descriptionMichael Vetter2022-06-292-7/+3
| |
* | Split ox functions from gpg.c to ox.cMichael Vetter2022-06-297-553/+652
| |
* | chatlog: sort and rename some functionsMichael Vetter2022-06-281-36/+34
| |
* | log: put static functions on topMichael Vetter2022-06-281-55/+52
| |
* | Include xmpp.h to cafile.cMichael Vetter2022-06-281-0/+1
| | | | | | | | Was pulled in through log.h
* | Include common.h and xmpp.h in editor.cMichael Vetter2022-06-281-0/+2
| | | | | | | | That was pulled in through log.h
* | Include xmpp.h in bookmark_ignore.cMichael Vetter2022-06-281-0/+2
| | | | | | | | That was pulled in through log.h
* | Include xmpp and message header to database.cMichael Vetter2022-06-281-0/+2
| | | | | | | | That was pulled in through log.h.
* | Split log.c into log.c and chatlog.cMichael Vetter2022-06-288-490/+590
| |
* | Fix formattingMichael Vetter2022-06-221-1/+1
| |
* | Add autocompletion for `/log level`Michael Vetter2022-06-221-0/+13
| |
* | Display log level information in preferencesMichael Vetter2022-06-223-0/+22
| |
* | Rename _log_string_from_level to _log_abbreviation_string_from_levelMichael Vetter2022-06-221-3/+4
| |
* | Correct default log maxsize in helpMichael Vetter2022-06-221-1/+1
| | | | | | | | This was changed in c4d7f1c29 from 1MB to 10MB.
* | Let user change log level while runningMichael Vetter2022-06-223-4/+17
| | | | | | | | | | | | | | | | | | | | | | `/log level INFO|DEBUG|WARN|ERROR` is now available. Looks like this solves a TODO (see removed comment in source) from 2013 :-) Works only with default log file. Not with user provided log file during start up via the -f parameter. Fix https://github.com/profanity-im/profanity/issues/1627
* | Display mood preferencesMichael Vetter2022-06-225-3/+15
| |
* | Make mood display optionalMichael Vetter2022-06-226-3/+26
| |
* | Fix build without omemoMarcoPolo-PasTonMolo2022-06-171-0/+2
| |
* | Don't forget encryption status for OX and PGP.MarcoPolo-PasTonMolo2022-06-176-21/+133
|/ | | | | | | | Use a pgp.enabled and ox.enabled array the same way that omemo.enabled is used. Fixes https://github.com/profanity-im/profanity/issues/1694 Fixes https://github.com/profanity-im/profanity/issues/733
* Improve cmd argument parserMarcoPolo-PasTonMolo2022-06-161-3/+12
| | | | | | | | | "" used to become " now it just becomes an empty argument. Also if quotes appeared after a token started then if the number of quotes in the token is n the resulting one would be a token with the n last characters cut off, now it's fixed. Fixes https://github.com/profanity-im/profanity/issues/497
* Reset buffer correctlyMichael Vetter2022-06-151-5/+3
|