Michael Vetter
d570546d7d
Add note about 256 color support
2020-03-17 09:01:21 +01:00
Michael Vetter
52e7e596aa
xep-0084/avatar: add option to open avatar directly
...
Change:
`/avatar me@somewhere.org` -> `/avatar get me@somewhere.org`
New:
`/avatar cmd feh`
`/avatar open me@somewhere.org`
Implement https://github.com/profanity-im/profanity/issues/1281
2020-03-10 07:12:13 +01:00
Michael Vetter
7e62d458ee
Make statusbar tab more resilient
...
If users input strange stuff and we can't create a jid from it even the
setting is set to 'user' we still should fallback to the regular
identifer.
For example with `/msg @name%matrix.domain.org@matrix.org hi`.
2020-03-09 16:33:42 +01:00
Michael Vetter
083ba7808d
Remove caution about LMC
...
We check the from now.
2020-03-09 13:35:27 +01:00
Michael Vetter
a3889c94bc
Rename ProfBufferEntry jid variable
2020-03-09 13:33:48 +01:00
Michael Vetter
f3d9de133e
Check for sender of LMC message
2020-03-09 13:31:49 +01:00
Michael Vetter
f7fe87dd4e
Write from jid in buffer
...
Not all cases covered yet.
2020-03-09 12:52:47 +01:00
Michael Vetter
95a16c2486
Add barejid to buffer struct
2020-03-09 12:47:43 +01:00
Michael Vetter
441e31984e
Remove old comments
2020-03-09 12:31:49 +01:00
Michael Vetter
56836fb72d
Use correct MUC message timestamp
...
win_println_incoming_muc_msg() always used the current time. Now let's
use whatever is sent int he message struct (from the delay stanza or
the current time that we set now once the message is received).
No playing with the time upon display anymore.
2020-03-09 12:22:36 +01:00
Michael Vetter
3d7e6fae7c
Use ProfMessage as parameter for win_println_incoming_muc_msg()
2020-03-09 12:00:15 +01:00
Michael Vetter
0801623018
window.c: Rename variable
2020-03-09 11:51:32 +01:00
Michael Vetter
8112b8c84b
Use proper OS names for OpenBSD and NetBSD
2020-03-09 11:24:14 +01:00
Michael Vetter
c9fcd01865
Dont check before freeing
...
Regards d18ec23d0a
2020-02-27 16:29:23 +01:00
Michael Vetter
ca14f3a1a2
Fix memory leak in win_create_muc()
...
I suspect this was just a copy paste error.
`_win_create_simple_layout()` is called in other creation functions like
`win_create_config()` or `win_create_private()`.
I suspect when `win_create_muc()` was created it was just copied. But in
this function we actually set the layout ourself later.
So calling the function isn't needed.
Regards https://github.com/profanity-im/profanity/issues/1279
2020-02-27 16:14:54 +01:00
Dmitry Podgorny
d18ec23d0a
Fix few memory leaks
2020-02-27 01:35:36 +02:00
Michael Vetter
779c2efc17
Set muc history correctly in _handle_groupchat()
...
Fix init. mistake introduced in e9c5c1979d
2020-02-25 16:34:43 +01:00
Michael Vetter
063b5243f1
Free jid in muc_members_add()
...
Fix memleak.
2020-02-25 16:31:41 +01:00
Michael Vetter
fc35a5a492
Stop buffer_remove_entry_by_id() once we found the entry
...
No need to continue to loop through the rest.
2020-02-25 16:11:59 +01:00
Michael Vetter
f597de4889
Properly free buffer entry
...
g_slist_delete_link() is not enough we also need to call _free_entry()
on the entry.
This fixes a memleak in win_insert_last_read_position_marker()
2020-02-25 16:06:00 +01:00
Michael Vetter
62730367d6
Fix memleak in stanza_get_oldest_delay
...
We need to unref the temp datetimes again.
2020-02-25 15:54:44 +01:00
Michael Vetter
e9c5c1979d
Fix memleak in _handle_groupchat()
...
We need to unref the timestamp before setting a new one.
2020-02-25 15:26:33 +01:00
Michael Vetter
240aeac4d3
Make cmd_logging() safer
...
Could be that args[1] is not set.
2020-02-25 14:55:46 +01:00
Michael Vetter
1a87d7be3e
Only use enc_char in win_print_incoming() when needed
...
Fixes potential memory leak too.
2020-02-25 14:52:38 +01:00
William Wennerström
24293ec47e
Improve formatting for some help instructions
...
Some instructions were missing whitespace or punctuation.
2020-02-24 14:39:23 +01:00
Michael Vetter
c08d0e9ce8
Fix errors in log.c
2020-02-22 09:27:04 +01:00
Michael Vetter
55f49f1259
get_log_file_location () should return const char*
...
Make clear that result should never be freed.
2020-02-21 21:19:54 +01:00
Michael Vetter
75cfe38808
Allow setting custom log file via -f FILENAME
...
`profanity -f TEST` will use `~/.local/share/profanity/logs/TEST.log` as
the log file.
2020-02-21 21:10:00 +01:00
Michael Vetter
99dc1c9494
Rename separator to trackbar
2020-02-21 19:17:12 +01:00
Michael Vetter
6dbbbe11e5
Make trackbar color configurable
...
Use `main.trackbar` in themes.
2020-02-21 19:12:16 +01:00
Michael Vetter
eb2fbdba2e
Dont filter out own MUC messages if muc history is set to 'regular'
...
We use the same incoming function as for regular incoming text here. But
don't want to filter out our own messages since we didn't print them
during sending.
Follow up to 8ee2cdadc8
2020-02-21 18:46:09 +01:00
Michael Vetter
669de0ca52
Improve setting encryption char error handling
2020-02-21 14:51:19 +01:00
Michael Vetter
2a952cb4c5
Expand omemo error message
2020-02-21 10:30:09 +01:00
Michael Vetter
fd04727212
pref: Use helper functions for setting/getting the encryption char
...
Dont duplicate code.
2020-02-21 09:51:40 +01:00
Michael Vetter
7fdc4ed7f6
win_print_incoming() strdup the charactar
...
Fix bug introduced in 1f8b1eb740
.
Forgot to strdup() here.
2020-02-21 08:02:11 +01:00
Michael Vetter
c13553bfcb
Fix missing change from last commit
2020-02-20 23:43:35 +01:00
Michael Vetter
1f8b1eb740
Allow utf8 symbols as omemo/pgp/otr indicator char
...
Fix https://github.com/profanity-im/profanity/issues/1264
2020-02-20 23:36:10 +01:00
Michael Vetter
280b718cfb
Fix theme setting correction char
...
Copy paste error. We actually set the omemo char..
2020-02-20 16:50:17 +01:00
Michael Vetter
8ee2cdadc8
Parse mentions and triggers in muc history if display is 'regular'
...
Fix https://github.com/profanity-im/profanity/issues/1261
2020-02-20 10:28:24 +01:00
Michael Vetter
1ddac7b9c6
Put getting mentions in own function
...
So we can use it somewhere else too.
Regards https://github.com/profanity-im/profanity/issues/1261
2020-02-20 10:03:36 +01:00
Michael Vetter
80dd3fdbb2
Add option to color MUC history like regular messages
...
`/logging group color` has:
* `unanimous` which will color it with one unanimous color. Like it was
done always.
* `regular` which colors it like regular incoming messages.
Regards https://github.com/profanity-im/profanity/issues/1261
2020-02-20 08:11:58 +01:00
Michael Vetter
6aa793fca6
Refactor mucwin_history()
...
Just pass ProfMessage.
2020-02-19 16:57:37 +01:00
Michael Vetter
cf36a92dcb
Add define names to comment
2020-02-19 16:36:54 +01:00
Michael Vetter
b4c6470df4
Merge pull request #1269 from wstrm/add-sr.ht-ci
...
Add builds.sr.ht CI for OpenBSD
2020-02-17 16:47:52 +01:00
Michael Vetter
0089fbcf0a
omemo: switch to 12 byte IV
...
We decrypt both 12 and 16 bytes.
And send 12 instead of 16 bytes now.
Close https://github.com/profanity-im/profanity/issues/1272
2020-02-17 14:04:24 +01:00
Michael Vetter
ea5a947f52
Refactor win_print_history()
...
We never use the printf like behaviour anyways.
2020-02-17 12:05:58 +01:00
Michael Vetter
6e68f1812b
Refactor win_print_outgoing_muc_msg()
...
We never use the printf like behaviour anyways.
2020-02-17 12:03:23 +01:00
Michael Vetter
f13ea11f95
Refactor win_println_incoming_muc_msg()
...
We never use the printf like behaviour anyways.
2020-02-17 11:58:36 +01:00
Michael Vetter
69d474b3a7
Refactor win_print_outgoing()
...
We never use the printf like behaviour anyways.
2020-02-17 11:48:50 +01:00
William Wennerström
b267b065f5
Add builds.sr.ht CI for OpenBSD
...
* Add .builds/openbsd.yml for builds.sr.ht
* Update travis-build.sh -> ci-build.sh with OpenBSD case
* Fix libdl check in configure.ac (OpenBSD has libdl built-in)
* Fix some minor issues found when compiling on OpenBSD with GCC (e.g.
uninitialized variables)
2020-02-17 10:54:15 +01:00