1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00
Commit Graph

58 Commits

Author SHA1 Message Date
John Hernandez
8304ac86ff g_free() to auto_gfree, introduce auto_guchar
Fix 11 potential mem leaks in theme.c
2023-07-13 17:04:59 +02:00
John Hernandez
e1d137f4e6 Change char->free to auto_char char for autocleanup
Replace `gchar` and `g_free` to `auto_gchar`
Correct certain  `char` functions/variables to `gchar`

Related to #1819.

Edited by @jubalh.
2023-07-11 13:26:37 +02:00
Michael Vetter
d17bcf619c Format code with clang-format 16 2023-04-14 21:45:21 +02:00
Michael Vetter
e59c401c84 Adapt to g_string_free glib 2.75.3 change
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.
2023-03-21 10:53:10 +01:00
Dustin Lagoy
2350a94c44 Add plugin get_barejid_from_roster function 2021-04-29 13:50:57 -04:00
Dustin Lagoy
802442fffc Change nick to name in api to match convention
Change all instances of *get_nick_from_roster to *get_name_from_roster
to match the convention of names in the roster itself.
2021-04-28 09:32:20 -04:00
Dustin Lagoy
ed4d2fcfb2 Add plugin prof_get_nick_from_roster function 2021-04-28 09:17:02 -04:00
Michael Vetter
057c9ad776 Add config.h in files were it was missing
Related to https://github.com/profanity-im/profanity/issues/1512
2021-03-26 19:54:22 +01:00
Michael Vetter
a2726b6a7d Apply coding style 2020-07-07 14:18:57 +02:00
Michael Vetter
a4cadf78fa Revert "Apply coding style"
This reverts commit 9b55f2dec0.

Sorting the includes creates some problems.
2020-07-07 13:53:30 +02:00
Michael Vetter
9b55f2dec0 Apply coding style
Regards https://github.com/profanity-im/profanity/issues/1396
2020-07-07 09:43:28 +02:00
Michael Vetter
46fd7150e5 Add vim modeline 2019-11-13 12:11:05 +01:00
Michael Vetter
706af9a900 Update copyright to include 2019 2019-01-22 11:31:45 +01:00
James Booth
250e972b7a Update copyright 2018-01-21 15:00:02 +00:00
James Booth
68a3daedb9 Update Copyright 2017-01-28 17:24:22 +00:00
James Booth
7090f85d85 Add chat and room show calls to plugins api 2017-01-21 20:23:28 +00:00
James Booth
9cfd17821c Allow room display properies to be set by plugins 2017-01-20 23:26:14 +00:00
James Booth
c8874cd2e0 Allow chat prefix char to be set by plugins 2017-01-20 21:03:55 +00:00
James Booth
1b25aa84cb Add titlebar encryption text to plugins api 2017-01-19 22:33:29 +00:00
James Booth
fccf56be10 Add prof.encryption_reset to Plugins API
issue #885
2017-01-18 22:46:29 +00:00
James Booth
8008d8c3c6 Add get_room_nick to plugins api 2016-11-06 23:01:16 +00:00
James Booth
dcc2123ec4 Allow filepath autocompletion in plugins
closes #858
2016-10-10 22:28:23 +01:00
James Booth
a65403c54a Remove disco features added by plugins on unload 2016-08-11 23:20:59 +01:00
James Booth
efeb2fcfcd Rename plugins settings functions 2016-08-07 00:16:57 +01:00
James Booth
350c121e26 Return int on c_api_settings_string_list_remove_all 2016-08-01 22:40:47 +01:00
James Booth
2518aa5078 Add string lists settings to plugins 2016-08-01 21:34:38 +01:00
James Booth
6c1fef522a Use g_strndup in c_api.c 2016-07-27 21:32:44 +01:00
James Booth
8f9f018d5a Free python_str_or_unicode_to_string results 2016-07-25 00:41:34 +01:00
James Booth
cbfc34f7c3 Remove debug on plugin win create 2016-07-24 22:32:39 +01:00
James Booth
4ecb4019a6 Add missing include 2016-07-24 01:19:59 +01:00
James Booth
e8fc80f5c1 Update GPL link in headers 2016-07-24 01:14:49 +01:00
James Booth
fd218ac3e4 Pass plugin name to all autocompleter functions 2016-07-04 23:14:08 +01:00
James Booth
71879a3f64 Free plugins commands on quit 2016-07-04 00:41:29 +01:00
James Booth
70a79abd3b Add plugin name to win_create api call 2016-07-03 00:48:22 +01:00
James Booth
56480ce9ea Pass plugin name to api layer 2016-06-30 22:54:46 +01:00
James Booth
29eb843d56 Revert "WIP - Unload plugin commands"
This reverts commit a01eb5d08e.
2016-06-30 22:37:52 +01:00
James Booth
a01eb5d08e WIP - Unload plugin commands 2016-06-29 23:35:57 +01:00
James Booth
61a09476c5 Add macro for plugins completer add 2016-06-23 00:44:52 +01:00
James Booth
1e37b755fe Add macro for C plugins register_timed 2016-06-23 00:36:26 +01:00
James Booth
c6288d89f9 Add function to get C plugin name 2016-06-23 00:26:50 +01:00
James Booth
623fbe9e47 Plugins: Added prof_disco_add_feature() 2016-04-30 23:00:07 +01:00
James Booth
d90c47f287 Plugins: Added more muc hooks 2016-04-15 22:24:50 +01:00
James Booth
2f432a942d Plugins: Added completer_clear 2016-04-07 23:25:47 +01:00
James Booth
bfdc3b8807 Plugins: Added completer_remove 2016-04-07 21:25:12 +01:00
James Booth
a328367eb4 Plugins: Renamed register_ac->completer_add 2016-04-07 20:49:23 +01:00
James Booth
194c53c4fa Plugins: Added basic incoming message function 2016-03-29 23:44:54 +01:00
James Booth
ce9b0836a0 Added integer settings for plugins 2016-03-26 02:19:30 +00:00
James Booth
e2b02733df Added plugin string settings 2016-03-26 01:48:42 +00:00
James Booth
a4e6d50a40 Added boolean settings for plugins 2016-03-25 22:06:24 +00:00
James Booth
4c913aa08b Added prof_send_stanza to plugins API 2016-03-23 22:57:03 +00:00