about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | fix examples for /executablePierre Mazière2020-07-021-2/+2
| | | | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * | cmd_url_*(): remove NULLing when not neededMichael Vetter2020-07-011-8/+4
| | |
| * | cmd_executable(): Check arg lengthsMichael Vetter2020-07-011-0/+10
| | |
| * | Adjust `/executable` test to be more preciseMichael Vetter2020-07-011-1/+1
| | |
| * | Move url/avatar commands from logging to exectuables sectionMichael Vetter2020-07-011-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | c56d530b67d09267eb46cba029217e4b84b32cef by peetah moves: urlopen.cmd from the 'logging' to a new 'executables' section in profrc avatar.cmd from the 'logging' to a new 'executables' section in profrc We need to adapt this so that users don't have to set the setting again themselves.
| * | console.c: Use prefs_free_string()Michael Vetter2020-07-011-1/+1
| | | | | | | | | | | | | | | f9961677aaa8d2713a80127f95a3770b33af4cef replaces prefs_free_string() with g_free(). Both is correct but lets still use this.
| * | prefs_free_string() doesnt need to check if pref is NULLMichael Vetter2020-07-011-4/+1
| | | | | | | | | | | | g_free(NULL); is noop.
| * | Display a message acknowledging file saving successPierre Mazière2020-06-251-0/+2
| | | | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * | Display default value for /url associated commandsPierre Mazière2020-06-251-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The display of commands associated with specific file types and protocols will need to be implemented later, but this requires to use private data of the GKeyFile structure, which can be a maintainability issue on the long term. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * | Add /url autocompletionPierre Mazière2020-06-251-4/+22
| | | | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * | Replace /urlopen with /url and adapt /executablePierre Mazière2020-06-255-33/+249
| | | | | | | | | | | | | | | | | | | | | | | | /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>
| * | Add string and string list preferences with optionPierre Mazière2020-06-252-1/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Where GKeyFile usually use the pref[locale] format to define locale specific translated data, it is here hijacked to be used as pref[option] in order to specialize a preference according to an option: open.url.cmd[pdf] = pdf-viewer open.url.cmd[jpg] = image-viewer 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>
| * | Add aesgcm to urls grabberPierre Mazière2020-06-251-1/+1
| | | | | | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* | | 0.9.5Michael Vetter2020-07-012-2/+2
| | |
* | | Update 0.9.5 changelogMichael Vetter2020-07-011-0/+6
| | |
* | | Add default value for titlebar.scrolledMichael Vetter2020-07-011-0/+1
| | | | | | | | | | | | Fix https://github.com/profanity-im/profanity/issues/1380
* | | otr.c: Simplify freeingMichael Vetter2020-07-011-3/+1
| | | | | | | | | | | | free(NULL) is a noop.
* | | Fix overlooking variableMichael Vetter2020-07-011-2/+2
| | | | | | | | | | | | Fix mistake where I overlooked some variables in 1224aa414e56a763412ee33c2b8779d4e6cb1608.
* | | files.c: use const char *const where appropriateMichael Vetter2020-07-012-4/+4
| | |
* | | Use files_get_account_data_path instead of duplicate codeMichael Vetter2020-07-016-105/+87
| | | | | | | | | | | | | | | We often had a use case where we want the account specific data dir. Let's create a function for this instead of doing it by hand each time.
* | | Initialize is_ox in win_create_chat()Stefan Kropp2020-07-011-0/+1
| | | | | | | | | | | | Fixes an issue where messages are displayed as OX when they are not.
* | | And ifdefs around new OX functionsMichael Vetter2020-06-302-8/+11
| | | | | | | | | | | | | | | Fix for some build cases introduced in 2c94ee5a88f64332a3f41f41a4d314fc52200e31 Fix https://github.com/profanity-im/profanity/issues/1376
* | | Add OX test stubsMichael Vetter2020-06-292-0/+16
| | |
* | | Fix omemo otr caseMichael Vetter2020-06-291-1/+2
| | | | | | | | | | | | Fix 3afd854dc862696c4842b2ed93efcad44d617910
* | | Feature request - XEP-0373: OpenPGP for XMPP (OX)DebXWoody2020-06-2920-4/+991
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | |
* | | Merge pull request #1363 from DebXWoody/definemessMichael Vetter2020-06-293-422/+19
|\ \ \ | |/ / |/| | Clean-up task: clean up feature defines
| * | Clean-up: defines cmd_funcs.cDebXWoody2020-06-201-42/+6
| | |
| * | Cleanup defines - client_events.cDebXWoody2020-06-191-179/+5
| | |
| * | Clean-up task: clean up feature definesDebXWoody2020-06-141-201/+8
| | |
* | | Start new cycleMichael Vetter2020-06-241-1/+1
| | |
* | | Release 0.9.4Michael Vetter2020-06-243-3/+11
| | |
* | | Merge pull request #1373 from profanity-im/cygwin-notifyMichael Vetter2020-06-241-3/+4
|\ \ \ | | | | | | | | Fix gcc warnings for cygwin
| * | | Fix gcc warnings for cygwinDmitry Podgorny2020-06-241-3/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | strncpy(3) is not so safe function and can lead to mistakes. For example, strncpy(dest, "Profanity", 10); is redundant and leads to problems when someone changes the source string. Different example is when 3rd argument equals to length of the destination buffer. strncpy(3) doesn't terminate string with '\0' when it truncates. Therefore, the destination string becomes corrupted. Zeroize storage for 'nid', so the last byte remains '\0' in case of truncate.
* | | Merge pull request #1372 from profanity-im/missed-string-hMichael Vetter2020-06-241-0/+1
|\ \ \ | | | | | | | | Add missed string.h
| * | | Add missed string.hDmitry Podgorny2020-06-241-0/+1
|/ / / | | | | | | | | | strdup(3) requires string.h
* | | Fix NULL terminated listMichael Vetter2020-06-231-1/+1
| | | | | | | | | | | | Regards https://github.com/profanity-im/profanity/issues/1367
* | | Start new cycleMichael Vetter2020-06-191-1/+1
| | |
* | | Release 0.9.3Michael Vetter2020-06-193-3/+9
| | |
* | | Use shell to start eval_password commandMichael Vetter2020-06-191-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since https://github.com/profanity-im/profanity/commit/d92c576aa53505d712715b1acc6344af3262c84f we rely on g_spawn_sync(). Which doesn't do variable/glob expansion. For our use of call_external() in opening and URL or avatar this is fine. For getting the password we want to be able to use ~ for our files. Let's use a shell here. Fix https://github.com/profanity-im/profanity/issues/1364
* | | Merge pull request #1365 from profanity-im/segfaultMichael Vetter2020-06-161-1/+1
|\ \ \ | |/ / |/| | Fix possible segfault in xmpp/message.c
| * | Fix possible segfault in xmpp/message.cDmitry Podgorny2020-06-161-1/+1
|/ / | | | | | | Check for pointer to be NULL before dereferencing it.
* | Start new cycleMichael Vetter2020-06-131-1/+1
| |
* | Release 0.9.2Michael Vetter2020-06-133-3/+11
| |
* | Use gnu99 standardMichael Vetter2020-06-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With recent changes to c99 and -D_POSIX_C_SOURCE=200809L we get the following: openSUSE TW CI sais: ``` Now you can run `make' to build profanity In file included from /usr/include/python2.7/Python.h:8, from src/plugins/python_plugins.c:37: /usr/include/python2.7/pyconfig.h:1226: error: "_POSIX_C_SOURCE" redefined [-Werror] 1226 | #define _POSIX_C_SOURCE 200112L | <command-line>: note: this is the location of the previous definition In file included from /usr/include/python2.7/Python.h:8, from src/plugins/python_api.c:37: /usr/include/python2.7/pyconfig.h:1226: error: "_POSIX_C_SOURCE" redefined [-Werror] 1226 | #define _POSIX_C_SOURCE 200112L | <command-line>: note: this is the location of the previous definition cc1: all warnings being treated as errors ``` OpenBSD CI sais: ``` cc1: warnings being treated as errors src/database.c: In function 'log_database_get_previous_chat': src/database.c:226: warning: implicit declaration of function 'asprintf' gmake[1]: *** [Makefile:1924: src/database.o] Error 1 gmake[1]: Leaving directory '/home/build/profanity' gmake: *** [Makefile:1211: all] Error 2 ``` Let us use gnu99. Has been proposed before already and is fine. Regards https://github.com/profanity-im/profanity/issues/1357 Regards https://github.com/profanity-im/profanity/pull/1351
* | Fix reading/writing linked filesMichael Vetter2020-06-135-4/+5
| | | | | | | | | | | | "base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
* | Define POSIX macro to have strdupMichael Vetter2020-06-128-25/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602 sets C99 as standard. strdup() is not part of C99. For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99. Using `gnu99` instead would be another option. We should take more care to use glib functions whenever possible. Regards https://github.com/profanity-im/profanity/issues/1357
* | Dont manipulate pointer from getenvMichael Vetter2020-06-121-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | Found this when looking to fix bug https://github.com/profanity-im/profanity/issues/1357 Not sure if it is related. man 3 getenv sais: ``` As typically implemented, getenv() returns a pointer to a string within the environment list. The caller must take care not to modify this string, since that would change the environment of the process. ```