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
Paul Fariello
84506cbaeb
Use OMEMO for offline MUC members ( #1242 )
2020-01-20 14:28:13 +01:00
Daniel Lublin
4420463541
Refactor /roster show/hide ( #1251 )
...
Refactor /roster show/hide
2020-01-12 22:02:32 +01:00
Michael Vetter
e904b000ad
Make /roster color configurable when offline
2019-12-20 10:07:44 +01:00
Michael Vetter
1f809e5210
Refactor _cmd_set_boolean_preference
...
Only compute string if necessary.
2019-12-19 19:25:58 +01:00
Michael Vetter
808850c6f5
Add /occupants color command
...
`/occupants color on|off` to enable or disable XEP-0392 also for the
MUC occupants.
Regards
https://github.com/profanity-im/profanity/issues/1191
2019-12-19 19:14:59 +01:00
Michael Vetter
0af54d8a72
Add /roster color command
...
`/roster color on|off` to enable or disable XEP-0392 also for the
roster.
Regards https://github.com/profanity-im/profanity/issues/1191
2019-12-19 18:53:22 +01:00
Michael Vetter
2b6b165ed2
xep-0084: Improve help
2019-12-18 14:35:47 +01:00
Michael Vetter
3fdeb52f1c
xep-0084: add /avatar help and autocompletion
2019-12-18 13:37:42 +01:00
Michael Vetter
e3538cf739
xep-0084: Look for specific user and print ID
...
Add a `/avatar` command.
2019-12-18 11:24:50 +01:00
Michael Vetter
2750194279
Implement Color Vision Deficiencies setting
...
Implement settings for redgreen and blue blindness.
Regards https://github.com/profanity-im/profanity/issues/1191
2019-12-12 11:07:11 +01:00
Michael Vetter
ddf6ada3d1
Add initial support for XEP-0392
...
The last 3 commits added basic support.
Thanks @aaptel!
This commit adds basic settings interface to use it.
See `/color on|off`.
We still have to enable settings for color blindness.
And maybe another setting to decide whether to color the
occupantslist/roster with the same algo.
Regards https://github.com/profanity-im/profanity/issues/1191
2019-12-09 16:12:54 +01:00
Michael Vetter
f0a719d1e1
Merge /group command into /roster
...
Fix https://github.com/profanity-im/profanity/issues/1229
Regards https://github.com/profanity-im/profanity/issues/1116
2019-11-25 10:40:25 +01:00
Michael Vetter
46fd7150e5
Add vim modeline
2019-11-13 12:11:05 +01:00
Michael Vetter
9bc4dc3827
Merge /chlog and /grlog commands into /logging
...
Instead of `/chlog on` we now have `/logging chat on`.
Instead of `/grlog on` we now have `/logging group on`.
Fix https://github.com/profanity-im/profanity/issues/1224
2019-11-12 12:39:24 +01:00
Michael Vetter
cbd85ffd1a
cmd_room: don't check arguments twice
2019-11-08 13:00:31 +01:00
Michael Vetter
b846c4970b
Fix setting of status message
...
Seems this actually never worked.
Now it does.
`/status set online "This is my text"`
`/status set away bye`
`/status set away`
2019-11-07 10:25:31 +01:00
Michael Vetter
ecfa2d0c1b
Merge state commands (online, away) into status
...
Before we had `/online`, `/away`, `/dnd`, `/chat`, `/xa`.
These commands are no longer available.
We have `/status set online` etc now.
Before `/status` was used to get the status of a contact.
This now moved to `/status get`.
Regards https://github.com/profanity-im/profanity/issues/1116
2019-11-06 20:09:34 +01:00
Michael Vetter
4a0d1d2108
Fix formatting for invite command help
2019-11-05 22:17:22 +01:00
Michael Vetter
c1a9736232
Merge /invite, /invites and /decline commands
...
`/invite <contact>` became `/invite send <contact>.
`/invites` became `/invite list`.
`/decline` became `/invite decline`.
Accept is still done via `/join`.
Regards https://github.com/profanity-im/profanity/issues/1116
2019-11-05 22:06:19 +01:00
Michael Vetter
40dc5932f7
Add /titlebar show presence command
...
Additionally to `/presence titlebar on` we now allow the setting via
/titlebar show|hide presence` since it's about the titlebar.
Regards https://github.com/profanity-im/profanity/issues/1116
2019-11-05 21:06:07 +01:00
Michael Vetter
3d272f02bc
Add /titlebar show resource command
...
Additionally to `/resource titlebar on` we now allow the setting via
/titlebar show|hide resource` since it's about the titlebar.
But makes sense to have it in `/resource` too because there is
`/resource message on|off` too. And this one doesnt have an setting of
it's own.
Regards https://github.com/profanity-im/profanity/issues/1116
2019-11-05 20:51:27 +01:00
Michael Vetter
fc6f2755c1
Move /encwarn command into /titlebar
...
Instead of `/encwarn on|off` we now have `/titlebar show|hide encwarn`.
Regards https://github.com/profanity-im/profanity/issues/1116
2019-11-05 20:39:33 +01:00
Michael Vetter
643d12af44
Move tls show to titlebar command
...
Previously we had `/tls show on|off` to manipulate the UI setting for
the title bar. To decide whether to show TLS info there or not.
This should go into `/titlebar`.
Now we have `/titlebar show|hide tls` for this.
Regards https://github.com/profanity-im/profanity/issues/1116
2019-11-05 13:48:26 +01:00
Michael Vetter
291f9de1e9
Send clipboard via /paste
...
New command `/paste` that sends the clipboard in MUC, Chat etc windows.
Fix https://github.com/profanity-im/profanity/issues/156
2019-10-29 15:20:57 +01:00
Michael Vetter
b46dbcc363
Add clipboard feature
...
Use GTK to take the text from the clipboard.
Add `/paste` command which pastes this text now to console window.
2019-10-29 15:20:57 +01:00
Michael Vetter
f186eb94da
Remove not neede free
...
It's in the def == NULL case. So will always be noop.
2019-10-25 14:06:03 +02:00
Michael Vetter
6a88af6bc6
Remove /leave command
...
We have `/close` which does the same and more.
Regards https://github.com/profanity-im/profanity/issues/1116
2019-10-22 15:33:54 +02:00
Dmitry Podgorny
6d11cd2db3
Fix memory leak in cmd_join()
...
room is either argv[0] or allocated by GString. We have to free memory
in the 2nd case. Replace argv[0] with g_strdup(argv[0]) in order to
make unconditional g_free().
2019-10-14 00:19:08 +03:00
Michael Vetter
87b66d0816
Make cmd_account safer
2019-10-10 18:06:28 +02:00
Michael Vetter
7684cf64f0
Revert "Fix memleak in cmd_join"
...
This reverts commit 1746f5f8a8 .
2019-10-06 22:44:35 +02:00
Michael Vetter
7d7997e93c
Add account clear example to help
...
Give example on how to clear pgpkeyig.
2019-10-06 20:46:50 +02:00
Michael Vetter
1746f5f8a8
Fix memleak in cmd_join
...
Free `room` string in case we allocated it ourselves.
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 18:53:16 +02:00
Michael Vetter
3ce27b47ad
Free strings in all cases in cmd_rooms
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 18:51:04 +02:00
Michael Vetter
10f2715ea9
Free options in error case for cmd_connect()
...
Regards https://github.com/profanity-im/profanity/issues/1019
2019-10-06 17:19:17 +02:00
Michael Vetter
684a9b1a56
Add /clear autocompletion and improve help
...
Regards https://github.com/profanity-im/profanity/issues/855
https://github.com/profanity-im/profanity/pull/874 brought us the
`/clear` command. The author of that patch couldn't follow up with the
review boothj5 did.
So the autocompletion and updated help was missing.
This commit adds it.
2019-10-05 16:19:53 +02:00
Michael Vetter
4637a7a23b
Merge remote-tracking branch 'philipflohr/master'
2019-10-05 15:04:46 +02:00
Michael Vetter
5c77b97c35
Introduce /reload command
...
This command reloads the configuration file.
Fix https://github.com/profanity-im/profanity/issues/627
2019-10-04 14:06:25 +02:00
Michael Vetter
7da2a444da
Mention XEP-0191 in blocked command
2019-09-30 19:12:47 +02:00
Michael Vetter
53c4c8548b
Document how to block users in MUCs
...
Regards https://github.com/profanity-im/profanity/issues/618
2019-09-30 19:11:30 +02:00
Michael Vetter
30875a9069
Fix typo conact -> contact
2019-09-29 15:07:32 +02:00
Michael Vetter
a4e9d9b9e2
Use helper function for cmd_status
2019-09-29 15:07:08 +02:00
Michael Vetter
b961ad29c7
Allow pasing a jid to info command in chat window
...
If we pass a jid/nick to `/info` in a chat window we will still get the
output. But on the console window.
Regards https://github.com/profanity-im/profanity/issues/1194
2019-09-29 15:04:19 +02:00
Michael Vetter
0f732466f8
Allow pasing a jid to status command in chat window
...
Regards https://github.com/profanity-im/profanity/issues/1194
2019-09-29 14:58:25 +02:00
Michael Vetter
62103665e2
Remove unused code in cmd_room() about win num
...
There is actually no reason to get the window number here.
2019-08-23 10:04:54 +02:00
Michael Vetter
658e36a066
Add 'save' command to save preferences
...
Most applications have an 'apply changes' button. This makes testing
easier too.
Implement https://github.com/profanity-im/profanity/issues/1164
2019-08-02 10:23:13 +02:00
Michael Vetter
41b54a5c14
Fix 3 leaks in cmd_funcs
2019-07-22 15:26:32 +02:00
Michael Vetter
27952cb16c
Fix several memleaks im cmd_ac.c
...
Exiting without freeing in some cases.
2019-07-22 14:59:20 +02:00
Michael Vetter
e75cc41164
Fix double initialization of loop iterator
2019-07-22 14:02:33 +02:00
Michael Vetter
16174727f4
Guard against arg being NULL in cmd_funcs
...
This should actually never happen because we have the mechanism that
checks the commands. But let's do it in case we break something in that
mechanism and to make clang happy.
Fixes clangs: 'Argument with 'nonnull' attribute passed null'
2019-07-22 13:47:52 +02:00