Michael Vetter
4c8e78664c
Fix old typo in titlebar presence
2020-03-24 22:24:25 +01:00
Michael Vetter
f131680055
titlebar: allow displaying MUC name and MUC jid
...
`/titlebar use name|jid` -> `/titlebar show|hide name|jid`
Fix https://github.com/profanity-im/profanity/issues/1284
2020-03-24 22:22:16 +01:00
Michael Vetter
fd090d384d
move titlebar code in correct function
2020-03-24 21:46:40 +01:00
Michael Vetter
3c56b289ed
Add slashguard feature
...
New command `/slashguard` tries to protect against typing ` /quit` by
not allowing a slash in the first 4 characters.
2020-03-18 18:20:05 +01:00
Michael Vetter
ed97e3730a
Enable popular features by default
...
Most clients have them enabled by default already for a smoother modern XMPP experience.
Enable by default: allowing message corrections, sending of read
receipts, enabling carbons, typing/chat states.
2020-03-17 09:13:57 +01:00
Michael Vetter
d570546d7d
Add note about 256 color support
2020-03-17 09:01:21 +01:00
Michael Vetter
0cc4ac5cbc
Add cons_avatar_setting to unit test stub
2020-03-10 07:17:54 +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
a23d4e4af7
Merge branch 'buffer-from'
...
Regards https://github.com/profanity-im/profanity/issues/805
Completes https://github.com/profanity-im/profanity/pull/1267
We now check who tries to "correct" a sent message.
2020-03-09 13:37:01 +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
Michael Vetter
16f5106f10
Merge pull request #1278 from profanity-im/memleaks
...
Fix few memory leaks
2020-02-27 16:02:15 +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
Michael Vetter
dd2474462b
readem: add chat badge
2020-02-25 13:57:09 +01:00
Michael Vetter
68685aaadf
Merge pull request #1276 from wstrm/fix-formatting
...
Improve formatting for some help instructions
2020-02-25 11:27:56 +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
f055faf31c
Fix log test stub
2020-02-21 21:29:14 +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
4b1b035654
Fix test stub
...
Change done in eb2fbdba2e
2020-02-21 19:16:52 +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