diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-12-09 16:12:54 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-12-09 16:12:54 +0100 |
commit | ddf6ada3d110ea2f20ffd69070bcc199c9426733 (patch) | |
tree | 2bb1ed9ba296f83f3e2ab9c0319bda276e1d89b6 /src/command/cmd_defs.c | |
parent | 7a0a578a8a56cb6689ac9fce680aa44f5af8926d (diff) | |
download | profani-tty-ddf6ada3d110ea2f20ffd69070bcc199c9426733.tar.gz |
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
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 70832552..0ea47bca 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2294,6 +2294,21 @@ static struct cmd_t command_defs[] = CMD_NOARGS CMD_NOEXAMPLES }, + + { "/color", + parse_args, 1, 1, &cons_color_setting, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_color) + CMD_TAGS( + CMD_TAG_UI) + CMD_SYN( + "/color on|off") + CMD_DESC( + "Settings for consistent color generation for nicks (XEP-0392).") + CMD_ARGS( + { "on|off", "Enable or disable nick colorization for MUC nicks." }) + CMD_NOEXAMPLES + }, }; static GHashTable *search_index; |