Michael Vetter
728cb55b68
message.c: Add pubsub helper function
2020-07-02 16:48:57 +02:00
Michael Vetter
f2b415079a
message.c: Add XEP information
2020-07-02 16:37:20 +02:00
Michael Vetter
1f50647865
message.c: Add my copyright
2020-07-02 15:22:58 +02:00
Michael Vetter
3350139ed0
message.c: Make several functions static
2020-07-02 15:21:54 +02:00
Michael Vetter
10190b5fb0
message.c: Adjust function formatting
2020-07-02 15:20:17 +02:00
Michael Vetter
26d4b00d6d
gpg.c: _ox_key_is_usable() simplify if condition
2020-07-02 15:11:06 +02:00
Michael Vetter
27f5706e77
gpg.c: Format new ox function heads
2020-07-02 15:09:34 +02:00
Michael Vetter
9c433e3033
log.c: Format code
2020-07-02 15:06:17 +02:00
Michael Vetter
a0e1dfbb87
cmd_funcs.c: Remove not needed variable
2020-07-02 15:00:52 +02:00
Michael Vetter
f8ff93234e
log.c: Use gchar* instead of GString for mainlogfile
2020-07-02 15:00:09 +02:00
Michael Vetter
f4159d8168
get_mentions() Use gchar instead of char
2020-07-02 12:17:23 +02:00
Michael Vetter
e5ac12afa6
Remove prefs_free_string()
...
It just does a free.
Related to b580b9ef11
2020-07-02 11:34:12 +02:00
Michael Vetter
9774b0c550
Merge pull request #1374 from profanity-im/revampUrlopen
...
Rework /url and /executable for filetypes
2020-07-02 11:26:18 +02:00
Michael Vetter
86cd33405e
Add note that /executable needs more work
2020-07-02 11:18:37 +02:00
Michael Vetter
322caf877e
Transform url.open.cmd to new default scheme
...
Additionally to:
7de83217c4
1e2a288d80
2020-07-02 11:14:27 +02:00
Michael Vetter
6ada720e18
executable: actually take the user set default if a certain scheme is
...
not found
2020-07-02 10:59:45 +02:00
Michael Vetter
7de83217c4
executable: Use DEF instead of * as default
...
So far:
```
/executable urlsave html "test %u" results in url.save.cmd[html]=test %u
/executable urlsave * "test %u" results in nothing.
```
Probably due to limitation in .ini file format.
2020-07-02 10:58:54 +02:00
Michael Vetter
59f5b81b85
cmd_url_*(): use gchar instead of char
2020-07-02 10:58:31 +02:00
Michael Vetter
1e2a288d80
Use correct format when transforming old urlopen.cmd
...
Additionally to ec7e635e75
.
In the earlier commit I just setted the test value ignoring the real
format.
Now we correctly transform:
```
[logging]
urlopen.cmd=xdg-open
```
into:
```
[executables]
url.open.cmd=false;xdg-open %u;
```
2020-07-02 10:22:18 +02:00
Michael Vetter
b45384902d
cmd_url_open(): fix memleak
2020-07-02 10:10:53 +02:00
Pierre Mazière
274e695320
use '*' to set a default executable
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-07-02 09:52:43 +02:00
Pierre Mazière
e96678e6a5
fix examples for /executable
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-07-02 09:52:28 +02:00
Michael Vetter
3af5f33489
0.9.5
2020-07-01 18:47:07 +02:00
Michael Vetter
d4eeb9a3eb
Update 0.9.5 changelog
2020-07-01 18:41:46 +02:00
Michael Vetter
92cba92c5d
Add default value for titlebar.scrolled
...
Fix https://github.com/profanity-im/profanity/issues/1380
2020-07-01 18:37:35 +02:00
Michael Vetter
a92942a4b7
otr.c: Simplify freeing
...
free(NULL) is a noop.
2020-07-01 17:09:03 +02:00
Michael Vetter
b96e25d9c3
Fix overlooking variable
...
Fix mistake where I overlooked some variables in 1224aa414e
.
2020-07-01 17:07:42 +02:00
Michael Vetter
2fc5a2ee54
cmd_url_*(): remove NULLing when not needed
2020-07-01 17:00:11 +02:00
Michael Vetter
780ee74177
cmd_executable(): Check arg lengths
2020-07-01 16:10:27 +02:00
Michael Vetter
8be1e44cea
Adjust /executable
test to be more precise
2020-07-01 15:42:26 +02:00
Michael Vetter
ec7e635e75
Move url/avatar commands from logging to exectuables section
...
c56d530b67
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.
2020-07-01 15:29:57 +02:00
Michael Vetter
2b5160a351
console.c: Use prefs_free_string()
...
f9961677aa
replaces prefs_free_string()
with g_free(). Both is correct but lets still use this.
2020-07-01 14:50:07 +02:00
Michael Vetter
b580b9ef11
prefs_free_string() doesnt need to check if pref is NULL
...
g_free(NULL); is noop.
2020-07-01 14:42:35 +02:00
Michael Vetter
9b514ad3d6
files.c: use const char *const where appropriate
2020-07-01 10:07:42 +02:00
Michael Vetter
1224aa414e
Use files_get_account_data_path instead of duplicate code
...
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.
2020-07-01 10:05:45 +02:00
Stefan Kropp
7d6ef8f4c8
Initialize is_ox in win_create_chat()
...
Fixes an issue where messages are displayed as OX when they are not.
2020-07-01 09:23:23 +02:00
Michael Vetter
8de6a7bfb0
And ifdefs around new OX functions
...
Fix for some build cases introduced in 2c94ee5a88
Fix https://github.com/profanity-im/profanity/issues/1376
2020-06-30 11:10:27 +02:00
Michael Vetter
60f4098846
Add OX test stubs
2020-06-29 21:21:16 +02:00
Michael Vetter
31ec640d05
Fix omemo otr case
...
Fix 3afd854dc8
2020-06-29 19:13:56 +02:00
DebXWoody
2c94ee5a88
Feature request - XEP-0373: OpenPGP for XMPP (OX)
...
Basic implementation of XEP-0373: OpenPGP for XMPP.
https://xmpp.org/extensions/xep-0373.html
Command /ox
Issue: #1331
2020-06-29 19:05:41 +02:00
Michael Vetter
3afd854dc8
cmd_funcs: fix omemo case
...
Small mistake introduced in b7f959bab4
.
2020-06-29 16:29:53 +02:00
Michael Vetter
2f4b1734e9
Dont allow starting a PGP session while in an OMEMO session
2020-06-29 15:14:55 +02:00
Michael Vetter
6bb00da517
Merge pull request #1363 from DebXWoody/definemess
...
Clean-up task: clean up feature defines
2020-06-29 15:06:48 +02:00
Pierre Mazière
233494d01e
Display a message acknowledging file saving success
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:34 +02:00
Pierre Mazière
f9961677aa
Display default value for /url associated commands
...
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>
2020-06-25 15:03:20 +02:00
Pierre Mazière
bcea9c863b
Add /url autocompletion
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:20 +02:00
Pierre Mazière
c56d530b67
Replace /urlopen with /url and adapt /executable
...
/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>
2020-06-25 15:03:04 +02:00
Pierre Mazière
7e652f4ca0
Add string and string list preferences with option
...
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>
2020-06-25 15:03:04 +02:00
Pierre Mazière
96c877de80
Refactor cmd_urlopen
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:01 +02:00
Pierre Mazière
64eb11fbaf
Add aesgcm to urls grabber
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:02:56 +02:00