Viachaslau Khalikin
45fa60e7e2
Print unloaded plugins which already installed
...
Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
2022-09-19 00:29:24 +03:00
Viachaslau Khalikin
dd1a9a1e50
Fix handle cmd_plugins_uninstall without args
...
Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
2022-09-19 00:12:49 +03:00
Netboy3
4ea98c71ee
Fix /autoaway command logic
...
Two issues were fixed in the parser logic:
* A call to cons_bad_cmd_usage() was placed at the end of the "time"
parser section that blocked reachability to both "message" and
"check" parser sections. This caused "/autoaway message ..." and
"/autoaway check ..." to always fail with "Invalid usage". This
issue was introduced in commit 3c1e4ba
.
* "/autoaway message xa" with no message argument returns message
set to (null). This should be fixed the same way as
"/autoaway message away" was fixed in commit 3c1e4ba
.
2022-07-28 11:48:38 -04:00
Michael Vetter
a40a0f5189
Split ox functions from gpg.c to ox.c
2022-06-29 09:17:15 +02:00
Michael Vetter
4da322db3b
Add autocompletion for /log level
2022-06-22 13:05:11 +02:00
Michael Vetter
5c0c386ffa
Correct default log maxsize in help
...
This was changed in c4d7f1c29
from 1MB to 10MB.
2022-06-22 13:05:02 +02:00
Michael Vetter
3f26dd6be9
Let user change log level while running
...
`/log level INFO|DEBUG|WARN|ERROR` is now available.
Looks like this solves a TODO (see removed comment in source) from 2013
:-)
Works only with default log file. Not with user provided log file during
start up via the -f parameter.
Fix https://github.com/profanity-im/profanity/issues/1627
2022-06-22 12:39:44 +02:00
Michael Vetter
918d060817
Display mood preferences
2022-06-22 11:45:13 +02:00
Michael Vetter
9f13b9e939
Make mood display optional
2022-06-22 11:32:27 +02:00
MarcoPolo-PasTonMolo
e4e53d6e01
Don't forget encryption status for OX and PGP.
...
Use a pgp.enabled and ox.enabled array the same way that omemo.enabled
is used.
Fixes https://github.com/profanity-im/profanity/issues/1694
Fixes https://github.com/profanity-im/profanity/issues/733
2022-06-17 15:43:54 +03:00
Michael Vetter
2e85f18cd6
Use our omemo sid/fingerprint in qr code
...
Current clients sid/fingerprint will be shown in following format:
`xmpp:<user@server>?omemo-sid-<numerical-sid>=<omemo-fingerprint-hex-string>`
Fix https://github.com/profanity-im/profanity/issues/1320
2022-05-31 15:44:44 +02:00
Michael Vetter
42fb8f86d9
Add command help for omemo qrcode
2022-05-30 18:04:42 +02:00
swirl
d64cb38240
Reverse QR code colors and add padding
...
All QR scanners should be able to recognize this, as it is now the
correct color with some padding to prevent blending.
Signed-off-by: swirl <swurl@swurl.xyz>
2022-05-30 18:04:42 +02:00
swirl
9a9a97868d
implement working OMEMO QR code
...
TODO: We need to find a way to switch the colors of the QR code, so that
more QR readers can detect it, without "blending" the edges of the QR
code with the surrounding terminal window.
Signed-off-by: swirl <swurl@swurl.xyz>
2022-05-30 18:04:42 +02:00
Michael Vetter
cf83976b51
Add basic qrcode functions
2022-05-30 18:04:36 +02:00
Michael Vetter
010ed78b32
Merge pull request #1714 from MarcoPolo-PasTonMolo/feature/avatar-set
...
Add `/avatar set` command to publish avatar
2022-05-30 18:01:50 +02:00
Michael Vetter
d510f3a430
Final touches for /avatar set
2022-05-27 10:46:36 +02:00
Michael Vetter
09f3c08af5
Fix description of mood
2022-05-27 09:36:41 +02:00
MarcoPolo-PasTonMolo
0cff111249
Add checks for whether gdk-pixbuf exists before using avatar set
2022-05-26 21:06:27 +03:00
MarcoPolo-PasTonMolo
6a44e18853
Add /avatar set
command to publish avatar
...
Use `/avatar set <path>` where <path> is an image file to upload a new
avatar for the current user. When the avatar is too big it gets scaled
down. Scaling code copied from dino.
Fixes https://github.com/profanity-im/profanity/issues/1687
2022-05-26 17:49:34 +03:00
Michael Vetter
1330ad4e1e
Update copyright year
2022-05-09 15:43:33 +02:00
Michael Vetter
e17ea040c9
Log encrypted messages by default to chatlog
...
In case chatlogs are available lets log everything by default.
Seems like most users expect this behaviour and I agree.
2022-05-09 14:16:28 +02:00
Michael Vetter
2e76e4f0c7
ox: remove /ox sendfile because its actually not implemented
2022-05-05 23:55:37 +02:00
Michael Vetter
b16bdca726
ox: show ox preferences
2022-05-05 23:55:31 +02:00
Michael Vetter
d011d6707c
ox: Add /ox log command
2022-05-05 23:41:45 +02:00
Michael Vetter
281c8b7d8d
Improve ox command help
...
Mention new man page.
Correct the usage of /ox request.
2022-05-04 00:22:18 +02:00
Michael Vetter
acedd42d78
ox: print message when /ox end
is run but not started
2022-05-04 00:03:45 +02:00
Michael Vetter
e5998fb63e
ox: implement /ox end
...
We also need to be able to stop an ox conversation :-)
2022-05-03 18:54:20 +02:00
Martin Dosch
c72c3f797c
Fix autocomplete for /ox discover
.
2022-05-02 17:33:01 +02:00
Michael Vetter
95686eb642
ox: add jid autocompletion for /ox request
2022-05-02 10:23:24 +02:00
Michael Vetter
27f25172e9
Merge branch 'master' into add_stamp_settings
2022-04-28 19:33:23 +02:00
Michael Vetter
0dd0193eba
use more standard replies when setting stamp
2022-04-28 19:31:27 +02:00
Michael Vetter
6c5d983f13
Rename stamp preference variable
...
PREF_INCOMING_STR -> PREF_INCOMING_STAMP
PREF_OUTGOING_STR -> PREF_OUTGOING_STAMP
2022-04-28 19:29:27 +02:00
Michael Vetter
69a8fdec95
Rewrite stamp help
2022-04-28 19:26:59 +02:00
Michael Vetter
066df7f741
Merge pull request #1697 from cockroach/feature/offline-muc-notifications
...
Add support for offline MUC notifications
2022-04-28 18:32:26 +02:00
Michael Vetter
69663b83c8
Fix ox autocompletion
...
Sometimes this happened:
`ox d<tab>` → `/ox request`
`ox a<tab>` → `/ox request`
`ox c<tab>` → `/ox keys`
`ox s<tab>` → `/ox keys`
`ox e<tab>` → `/ox keys`
We didn't reset the ox_*_ac variables.
2022-04-28 17:54:12 +02:00
Michael Vetter
9fcd589682
ox: group online autocompletion together
2022-04-28 17:37:24 +02:00
Michael Vetter
866f688621
ox: print bad usage instead of custom message
2022-04-27 16:13:05 +02:00
Michael Vetter
ecafb6deaf
Remove comment
2022-04-27 16:08:39 +02:00
Stefan Ott
8044c82614
Add support for offline MUC notifications
2022-04-23 02:42:23 +02:00
Paul Fertser
b00e74f3b8
Allow /editor while not connected
...
Since /editor can be used also for commands it doesn't make sense to
restrict it to only connected state.
2022-04-12 11:42:50 +03:00
Artjom Vejsel
2c003dd2e1
add /stamp command
...
command allow override standard stamps of incoming and outgoing messages
2022-04-02 00:23:08 +03:00
Steffen Jaeckel
b914929320
fix account set theme
help
...
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
2022-04-01 11:03:28 +02:00
Steffen Jaeckel
f284641710
less duplication
...
Print error message from `_string_matches_one_of()` instead of forming
an error message manually that contains the same entries that were checked
in `_string_matches_one_of()`.
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
2022-03-31 14:29:56 +02:00
Steffen Jaeckel
c53b78ea1c
use _string_matches_one_of()
at more places
...
I missed them the last time ...
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
2022-03-31 10:33:14 +02:00
Steffen Jaeckel
2995fbb953
add _string_matches_one_of()
helper function
...
... instead of copying the same pattern over and over again.
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
2022-03-30 18:26:10 +02:00
MarcoPolo-PasTonMolo
03f8db9658
Add none option for /who
...
Fixes https://github.com/profanity-im/profanity/issues/1425
`/who none` now displays all users in an muc without an affiliation
2022-03-27 16:06:29 +03:00
Michael Vetter
409268e2b6
Merge pull request #1655 from profanity-im/win-autocomplete
...
Reset url autocompletion after open/save
2022-03-24 20:30:40 +01:00
Michael Vetter
923af3ba38
Reset url autocompletion after open/save
...
I guess we should reset the position after we ran `/url open|save`.
So that next time `/url open <tab>` starts with the latest entry.
Fix https://github.com/profanity-im/profanity/issues/1654
2022-03-24 15:39:58 +01:00
Steffen Jaeckel
7f1f9787cb
add profanity-specific CAfile
...
The profanity-internal mechanism to allow connecting to a server isn't
easily portable to cURL. Therefor introduce a profanity-specific CAfile
which is managed individually and will be configured in libcurl calls.
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
2022-03-22 11:44:01 +01:00