Michael Vetter
7fdc4ed7f6
win_print_incoming() strdup the charactar
...
Fix bug introduced in 1f8b1eb740391941e79e1004ad041f8178a2b674.
Forgot to strdup() here.
2020-02-21 08:02:11 +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
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
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
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
Michael Vetter
7d596d8cef
Make /sendfile in PGP session configurable
...
`/pgp sendfile on` allows unencrypted file transfer in an PGP session.
Regards https://github.com/profanity-im/profanity/pull/1270
2020-02-17 08:57:35 +01:00
Michael Vetter
86bcadcbe3
Make /sendfile in OTR session configurable
...
`/otr sendfile on` allows unencrypted file transfer in an OMEMO session.
Regards https://github.com/profanity-im/profanity/pull/1270
2020-02-17 08:51:43 +01:00
Michael Vetter
36713a2ed7
Make /sendfile in OMEMO session configurable
...
`/omemo sendfile on` allows unencrypted file transfer in an OMEMO
session.
Regards https://github.com/profanity-im/profanity/pull/1270
2020-02-17 08:31:46 +01:00
Michael Vetter
421c67e284
Add workaround for compiler warning
...
Regards https://github.com/profanity-im/profanity/issues/1265
2020-02-14 11:23:19 +01:00
Michael Vetter
fcfb493dfb
Rename buffer->from to buffer->display_from
2020-02-14 10:17:07 +01:00
Michael Vetter
e27c414f1f
xep-0308: enable for carbon copied messages
...
If we are connected with another client and send a message, then correct
it. We now display it correctly in Profanity.
Id wasn't saved for carbon copied messages too so far.
2020-02-14 10:17:07 +01:00
Michael Vetter
9b3593bdf9
xep-0308: enable correction in outgoing messages with delivery receipts
2020-02-14 10:17:07 +01:00
Michael Vetter
3e901aee99
Rename win_print_with_receipt() -> win_print_outgoing_with_receipt()
2020-02-14 10:17:07 +01:00
Michael Vetter
3a1be74e93
Add myself to copyright
2020-02-14 10:17:07 +01:00
Michael Vetter
2900bf4aef
Rename win_println_them_message()
-> win_println_incoming_muc_msg()
...
In aa3693daa211b36c78d136d5a1ee9f3258e21352 I renamed
`win_println_me_message()` -> `win_print_outgoing_muc_msg()`.
Now: `win_println_them_message()` -> `win_println_incoming_muc_msg()`
to be more consistent and descriptive.
2020-02-14 10:17:07 +01:00
Michael Vetter
50271493b7
xep-0308: remove replace_id from privwin signature
...
No `/correct` allowed in privwins
2020-02-14 10:17:07 +01:00
Michael Vetter
743ec6afd0
xep-0308: only replace messages if the user enabled the feature
...
Outgoing `/correct` will still work.
2020-02-14 10:17:07 +01:00
Michael Vetter
4ec005e4c3
xep-0308: Implement LMC for outgoing MUC messages
...
Including OMEMO encrypted ones.
Also rename `win_println_me_message()` to `win_print_outgoing_muc_msg()
as I think it's a more descriptive name.
2020-02-14 10:17:07 +01:00
Michael Vetter
66d3f572f9
xep-0308: Dont allow to correct MUC PMs
...
People could change messages of other people if the nick isn't
registered.
2020-02-14 10:17:00 +01:00
Michael Vetter
7cd1be36f2
xep-0308: Display corrected incoming MUC messages correctly
2020-02-12 12:56:34 +01:00
Michael Vetter
38c32be14c
Distinguish between _win_print() and _win_printf()
...
_win_print() and _win_printf() sound like they are the same. But
actually they are something totally different.
I renamed _win_print() to _win_print_internal() for that reason. It's
more about actually drawing to the ncurses window.
_win_printf() calls _win_print() and also writes the text to the window
buffer. Which _win_print() didn't, it was really just the ncurses
specific things.
In some cases there is _win_print_internal() called after a
buffer_append() in those cases it might be more correct to actually call
_win_printf().
It was not done so far. But probably is better. But will mean a bit more
operations.
I'll have to check this later.
2020-02-12 08:32:34 +01:00
Michael Vetter
0482a80f8a
Rename win_correct_incoming to win_correct
...
and make it static.
2020-02-12 07:07:54 +01:00
Michael Vetter
b6b7dd5ad4
xep-0308: update the UI upon sending a corrected message
...
So far we don't do this for encrypted messages. Still needs to be done.
And MUC also needs to be done.
2020-02-11 15:26:58 +01:00
Michael Vetter
1118110071
xep-0308: Implement /correct
to correct the last send message
...
So far the correction is sent. But the UI in Profanity itself is not
updated.
Also autocompletion for `/correct` with the last sent message is
missing.
2020-02-10 16:17:01 +01:00
Michael Vetter
dd8086772d
xep-0308: create setting to toggle lmc
...
and print settings if only `/correction` is run.
2020-02-10 14:52:42 +01:00
Michael Vetter
039bf5d04d
xep-0308: add correction
autocompletion
2020-02-10 13:35:46 +01:00
Michael Vetter
f16d56a15e
xep-0308: Initial support for incoming LMC
2020-02-10 13:19:54 +01:00
Michael Vetter
772224421d
Clear buffer upon /clear
...
I think both the window and the buffer should also be cleared in case
`/clear` is issue and persist_history is off.
Otherwise it could happen that win_redraw() redraws the whole content of
the buffer again.
2020-02-07 15:52:24 +01:00
Michael Vetter
c73d70171b
rosterwin: end correct colors
...
Actually presence_colour should be stopped there.
Thanks to rumin-miller for finding this.
2020-02-03 11:41:13 +01:00
Paul Fariello
a52e3ea1d8
Add context to autocomplete_with_func and use it for omemo trust command
...
Fix #1068
2020-01-31 10:07:08 +01:00
Michael Vetter
cd80b6cbf2
Change theme handling
...
So far when loading a theme it also overwrote the preferences the user
set.
Lengthy discussion can be found at
https://github.com/profanity-im/profanity/issues/1077
Now we use `/theme load themename` to load the [colours] part of a
themem only.
`/theme full-load themename` will load the complete theme including
preferences set in there.
Regards https://github.com/profanity-im/profanity/issues/1077
2020-01-29 12:33:55 +01:00
Michael Vetter
4bc82a5318
XEP-0092: Add configuration option to choose whether to send OS name
...
`/os on|off` now let's one choose whether to include the OS name once
`/software` (XEP-0092) is ran on us.
2020-01-24 19:27:42 +01:00
Michael Vetter
fd38c7adae
Add myself to copyright
2020-01-23 19:58:31 +01:00
Michael Vetter
6567936406
Refactor rosterwin_roster()
...
Use helper function for duplicate code.
2020-01-23 19:52:41 +01:00
Michael Vetter
56b7482b08
Add option to display MUC name or JID in titlebar
...
Add `/titlebar use [name|jid]`.
2020-01-23 19:42:22 +01:00
Michael Vetter
0401412c64
Display MUC name in titlebar
2020-01-23 18:53:14 +01:00
Michael Vetter
036389e8c5
Fix spacing in titlebar.c
2020-01-23 18:48:54 +01:00
Michael Vetter
08a3f94a89
Print roster rooms use
in info page
2020-01-23 18:38:52 +01:00
Michael Vetter
10c4032d12
Respect /roster room use
setting also when sorted for service
2020-01-23 18:29:49 +01:00
Michael Vetter
31509022ef
NULL room_name in win_create_muc()
2020-01-23 18:22:36 +01:00
Michael Vetter
9e35861001
Add /roster room use
command
...
`/roster room use name` to use the name of the MUC in the roster list.
`/roster room use jid` to use the jid of the MUC in the roster list.
Display it only in case `/roster room by none` is set so far.
2020-01-23 16:50:43 +01:00
Michael Vetter
3066fd77fc
Save MUC room name in ProfMucWin
...
We will need this if we want to display the Name instead of the JID.
2020-01-23 11:35:33 +01:00
Michael Vetter
dac6d088d0
rosterwin: remove duplicate if
2020-01-22 09:30:09 +01:00