about summary refs log tree commit diff stats
path: root/src/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Adapt to g_string_free glib 2.75.3 changeMichael Vetter2023-03-211-5/+1
| | | | | | | | | | | | glib 2.75.3 changes warning behaviour of `g_string_free()`. See: * https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3219 * https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3226 Use this opportunity to replace the use of GString with `g_strdup_printf()` where possible. Otherwise correctly take the return value of `g_string_free()` which is nicer anyways.
* plugin: python: fix build for Python 3.11Đoàn Trần Công Danh2022-09-241-0/+8
| | | | | | | From Python 3.11, PyFrameObject has been changed into opaque struct. We need to access those fields via API. Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
* Fix python executed during configurej.r2022-02-182-5/+5
| | | | | | | | | | | | | | | Previously it relied on AX_PYTHON_DEVEL, which in turn executes python-config to get the build flags. However this does not work while cross compiling because we can't execute the python-config build for the target platform. To circumvent this problem the python build flags are now queried via pkgconfig, which has the drawback of not having some extra build flags, but they do not seem to be needed. I tested this patch with the termux build system and it build without their existing hack of injecting python after the configure step. I also tested non cross compile build on Arch Linux and it also still works. Fixes #851
* python_api.c: enlarge `c_arguments` array to avoid OOB writeSergei Trofimovich2021-11-261-1/+1
| | | | | | | | | Code below explicitly refers past `args_len`th element: c_arguments[args_len][0] = NULL; c_arguments[args_len][1] = NULL; Let's always allocate space for `NULL`. Noticed by Steffen Jaeckel.
* src/plugins/python_api.c: drop redundant NULL pointer checkSergei Trofimovich2021-11-181-1/+1
| | | | | | | | | | | | gcc-12 detects redundant check against array of arrays as: src/plugins/python_api.c: In function ‘python_api_register_command’: src/plugins/python_api.c:199:31: error: the comparison will always evaluate as ‘true’ for the address of ‘c_arguments’ will never be NULL [-Werror=address] 199 | while (c_arguments[i] != NULL && c_arguments[i][0] != NULL) { | ^~ src/plugins/python_api.c:161:15: note: ‘c_arguments’ declared here 161 | char* c_arguments[args_len == 0 ? 0 : args_len + 1][2]; | ^~~~~~~~~~~
* src/plugins/callbacks.c: drop redundant NULL pointer checkSergei Trofimovich2021-11-181-1/+1
| | | | | | | | | | | | | | | gcc-12 detects redundant check against array of arrays as: src/plugins/callbacks.c: In function ‘_free_command_help’: src/plugins/callbacks.c:85:26: error: the comparison will always evaluate as ‘true’ for the address of ‘args’ will never be NULL [-Werror=address] 85 | while (help->args[i] != NULL && help->args[i][0] != NULL) { | ^~ In file included from ./src/ui/ui.h:44, from ./src/command/cmd_defs.h:42, from src/plugins/callbacks.c:41: ./src/command/cmd_funcs.h:48:12: note: ‘args’ declared here 48 | gchar* args[128][2]; | ^~~~
* Add plugin get_barejid_from_roster functionDustin Lagoy2021-04-296-0/+38
|
* Change nick to name in api to match conventionDustin Lagoy2021-04-286-12/+12
| | | | | Change all instances of *get_nick_from_roster to *get_name_from_roster to match the convention of names in the roster itself.
* Add plugin prof_get_nick_from_roster functionDustin Lagoy2021-04-286-0/+40
|
* Add config.h in files were it was missingMichael Vetter2021-03-269-0/+18
| | | | Related to https://github.com/profanity-im/profanity/issues/1512
* Fix various typosMichael Vetter2020-12-101-2/+2
|
* Declare counter var inside loopMichael Vetter2020-11-092-3/+2
| | | | We require c99/gnu99 anyways.
* Dont hilight console once all messages have been readMichael Vetter2020-07-091-1/+1
| | | | | | | | | | | | | | | | 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
* Apply coding styleMichael Vetter2020-07-0722-1487/+1537
|
* Revert "Apply coding style"Michael Vetter2020-07-0722-1576/+1526
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-0722-1526/+1576
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Fix reading/writing linked filesMichael Vetter2020-06-131-1/+1
| | | | | | "base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
* Add to_jid field to ProfMessage structMichael Vetter2020-04-111-1/+1
| | | | | Is usefult in many cases if we want cleaner code. Hope this edit didn't break anything though ;-)
* Allow utf8 symbols as omemo/pgp/otr indicator charMichael Vetter2020-02-201-12/+12
| | | | Fix https://github.com/profanity-im/profanity/issues/1264
* Add vim modelineMichael Vetter2019-11-1324-0/+24
|
* plugins/python: fix double _XOPEN_SOURCE definitionDmitry Podgorny2019-10-152-0/+2
| | | | | | | | | | | | | ncursesw defines _XOPEN_SOURCE macro via command-line. In particular, it is defined in ncursesw.pc and extracted via pkg-config. From other side, Python defines the same macro unconditionally in pyconfig.h. Python-3.x defines the macro with value different than ncursesw does. In turn, this causes a warning that the macro is redefined. And warnings are treated as errors. Since both entities define the mecro unconditionally, we can't simply reorder headers as Python developers suggest. So, undefine the macro just before the <Python.h> to fix this silly issue.
* Sort includes in python_api.cMichael Vetter2019-10-071-5/+2
|
* Destroy hash table ein autocompleters_destroy()Michael Vetter2019-10-061-0/+3
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Add comment about dead assignment in callback_add_timedMichael Vetter2019-08-231-0/+1
|
* Fix double initialization of loop iteratorMichael Vetter2019-07-221-2/+0
|
* Rename prof_message_t into ProfMessagePaul Fariello2019-06-201-1/+1
|
* Add prof_message_t to wrap all message attributesPaul Fariello2019-06-201-2/+8
| | | | | | | Probably missing copy of body to plain in carbon and privmessage. Only covers the incoming message path because goal is OMEMO decryption of untrusted message. Cover some of the log functions but not all.
* Improve plugin load/install failure messageMichael Vetter2019-06-072-12/+23
| | | | | | 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.
* Follow normal workflow for OMEMO message receptionPaul Fariello2019-04-101-1/+1
| | | | | | We try to decrypt all messages, if it's successful we use sv_ev_incoming_message even for OMEMO messages. We pass an OMEMO boolean to let UI be aware that message were encrypted.
* Merge pull request #994 from philipflohr/masterMichael Vetter2019-02-201-1/+2
|\ | | | | Fail plugin unloading if plugin does not exist
| * Fail plugin unload operation if plugin does not existPhilip Flohr2019-02-201-1/+2
| |
* | Merge pull request #995 from philipflohr/plugins_unload_allMichael Vetter2019-02-201-3/+3
|\ \ | | | | | | let plugins_unload_all fail if one plugin unload operation fails
| * | plugins_unload_all fails if one plugin unload operation failsPhilip Flohr2018-04-211-3/+3
| |/
* | Update copyright to include 2019Michael Vetter2019-01-2224-24/+24
| |
* | Fix extended plugin handling PRPhilip Flohr2018-09-061-1/+6
| | | | | | | | Fixes problems found in PR #999
* | added the possibility to uninstall a pluginPhilip Flohr2018-09-062-0/+17
| |
* | use gio functions for file copyPhilip Flohr2018-09-061-2/+1
| |
* | removed unreachable code: if plugin is loaded it is also installed and ↵Philip Flohr2018-09-061-5/+0
| | | | | | | | therefore installation will fail. -> The unload code is not needed
* | provide feedback on failure cause if plugin installation failsPhilip Flohr2018-09-062-4/+7
| |
* | Fail plugin installation if the target file already existsPhilip Flohr2018-09-061-0/+6
|/
* Add preferences for tab displayJames Booth2018-03-091-1/+1
|
* Show name in statusbar tabs WIPJames Booth2018-03-081-1/+1
|
* Update copyrightJames Booth2018-01-2124-24/+24
|
* Show Python version on --versionJames Booth2017-08-102-2/+14
| | | | issue #956
* Allow previous autocompletion with shift tabJames Booth2017-04-014-7/+7
|
* Allow installing plugins from directoryJames Booth2017-02-052-0/+45
|
* Allow loading all pluginsJames Booth2017-02-052-3/+26
|
* Allow unloading all pluginsJames Booth2017-02-052-0/+22
|
* Update CopyrightJames Booth2017-01-2824-24/+24
|
* Add pre chat and room message blockingJames Booth2017-01-226-15/+73
|