1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
Commit Graph

5859 Commits

Author SHA1 Message Date
Michael Vetter
994411d470 database: create table 2020-04-06 10:50:20 +02:00
Michael Vetter
8bfb175d03 Start SQLite db module
I plan to save all messages in an SQLite db.
For retrieving information it's nicer than having it in a text file.
We will have more info in there and easier to parse it.

This will also be good for later MAM
(https://github.com/profanity-im/profanity/issues/660).

Regular text files will still be an option for users so that they can
easily grep them and do whatever they like.

Internally Profanity will only use the SQLite db.
2020-04-06 10:50:20 +02:00
Michael Vetter
49057077b9
Merge pull request #1299 from profanity-im/memleaks
Fix few memory leaks
2020-04-06 10:39:32 +02:00
Dmitry Podgorny
42b6d78a70 Fix multiple memory leaks related to rosterwin_roster()
There are multiple paths which lead to rosterwin_roster(). The function
doesn't free list returned by wins_get_private_chats().
2020-04-06 14:29:21 +03:00
Dmitry Podgorny
ba291a03f4 Fix memory leak in cons_show_disco_info() 2020-04-06 13:29:36 +03:00
Michael Vetter
eb2165e0a4
Merge pull request #1298 from profanity-im/memleaks
Fix few memory leaks
2020-04-05 19:57:56 +02:00
Dmitry Podgorny
ded48a7e40 Fix memory leak in stanza_attach_correction()
xmpp_stanza_add_child() takes own reference to the child stanza.
Therefore we have to release our reference or the child is lost
and not freed otherwise.
2020-04-05 15:58:28 +03:00
Dmitry Podgorny
dc5ddb8ebe Fix memory leak in _rosterwin_resources() 2020-04-05 15:57:27 +03:00
Michael Vetter
23d79e6eac readme: add repos and urls 2020-04-05 00:13:38 +02:00
Michael Vetter
63b996a3b6 Add blog to readme
Many people seem to miss because they check only github and not the
website.
2020-04-05 00:10:43 +02:00
Michael Vetter
1cd9bfd2e7 Dont have account otr setting if built without otr 2020-04-03 01:37:25 +02:00
Michael Vetter
fd19b45a37
Merge pull request #1297 from profanity-im/memleak-mucwin
Fixed memory leak in ProfMucWin
2020-04-03 00:11:12 +02:00
Dmitry Podgorny
37c200571f Fixed memory leak in ProfMucWin
Profanity remembers last message and its id for the message correction
feature. We must free them in window destructor.
2020-04-03 01:47:38 +03:00
Michael Vetter
35edc56b1d Dont have otr autocompletion if build without otr support 2020-04-03 00:08:39 +02:00
Michael Vetter
b3f4a5a682 Dont have pgp autocompletion if build without pgp support 2020-04-03 00:06:17 +02:00
Michael Vetter
733d268e90 Dont even create OMEMO ac vars if we build without support 2020-04-03 00:02:21 +02:00
Michael Vetter
c57bd56655 Merge branch 'master' of github.com:profanity-im/profanity 2020-04-02 23:59:55 +02:00
Michael Vetter
df23c34611 Only have OMEMO autocompletion if we build with OEMO support 2020-04-02 23:59:21 +02:00
Michael Vetter
75a43f923f Fix omemo autocompletion mitake
Don't return too early. We still need to check for regular omemo
autocompletion (omemo_ac).
2020-04-02 23:57:06 +02:00
Michael Vetter
15e05d1706
Merge pull request #1296 from wstrm/ci-without-coreutils
Fallback for nproc for systems without GNU coreutils
2020-04-01 15:01:50 +02:00
William Wennerström
06f8299e7c
Fallback for nproc for systems without GNU coreutils 2020-04-01 14:21:12 +02:00
Michael Vetter
7eec3107fc
Merge pull request #1295 from wstrm/upgrade-docker
Use latest Docker in CI
2020-03-30 22:20:01 +02:00
William Wennerström
bec7189295
Use latest Docker in CI
Force a Docker upgrade for all Linux runners.

Fixes: #1294
2020-03-30 20:45:22 +02:00
Michael Vetter
6c17a36465 thanks travis..
Regards https://github.com/profanity-im/profanity/issues/1294
2020-03-30 15:19:10 +02:00
Michael Vetter
8a2fa7e8c1 travis: use bionic 2020-03-30 15:17:42 +02:00
Michael Vetter
cb755a5c84 Next travis try
https://github.com/profanity-im/profanity/issues/1294
2020-03-30 15:14:13 +02:00
Michael Vetter
1e2511eba4 Another try at docker
Regards https://github.com/profanity-im/profanity/issues/1294
2020-03-30 15:08:44 +02:00
Michael Vetter
8386cac8e7 Run docker in privileged mode
From https://docs.docker.com/engine/reference/run/:

```
When the operator executes docker run --privileged, Docker will enable
access to all devices on the host as well as set some configuration in
AppArmor or SELinux to allow the container nearly all the same access to
the host as processes running outside containers on the host.
```

Regards https://github.com/profanity-im/profanity/issues/1294
2020-03-30 14:43:29 +02:00
Michael Vetter
e88113afa1 os TW 20200325 test 2020-03-30 12:28:42 +02:00
Michael Vetter
67c0d11629 Test oS TW 20200324
Tests fail in TW image. Doesn't seem our fault.
Let's try to find out since when.
2020-03-30 12:16:46 +02:00
Michael Vetter
1bcfd4ece6 Remove 'use' from titlebar autocompletion
This was forgotten in f131680055.
2020-03-29 23:21:23 +02:00
Michael Vetter
89502ca199
Merge pull request #1292 from profanity-im/memleak-issue1279
Fix memory leak of presence object
2020-03-29 21:57:57 +02:00
Michael Vetter
c520c3d3c3 Fix edit mistake 2020-03-27 14:24:48 +01:00
Michael Vetter
53aa8d7cbf Upgrade examples 2020-03-26 15:55:19 +01:00
Michael Vetter
a8bc3c38b2 Add jubalian theme 2020-03-25 15:45:59 +01:00
Michael Vetter
4b56fe6c57 Add history.muc.color to theme template 2020-03-25 15:45:23 +01:00
Michael Vetter
4fc938d804 Add setting to not colorize own nick according to xep-0392
Some users might want there nick to always stay white (etc) for easier
recognition.

Now we can do `/color own off` to not generate the color based on
xep-0392. The `me=` color (etc) from the theme will then be used.

Once we run this command `theme_load()` is called again.
And the theme looks totally wrong.
We encountered this at other times already and I think it's nothing
wrong with this new code here now but that there seems to be a missing
closing attr for the color when drawing.

Should be investigated seperately.

Fix https://github.com/profanity-im/profanity/issues/1288
2020-03-25 12:54:25 +01:00
Michael Vetter
4f19ea2642 Add -t theme option
`profanity -t bios` loads the bios theme now.

Fix https://github.com/profanity-im/profanity/issues/1286
2020-03-24 23:00:39 +01:00
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