diff options
author | Simmo Saan <simmo.saan@gmail.com> | 2019-11-25 20:59:56 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-11-25 21:38:20 +0100 |
commit | 1a00368888118ed8d5aa620b164cc466fa005045 (patch) | |
tree | ea5e633259ad33b8a535d1c4b0f5d705da0e313c /src/core | |
parent | c634d6c56e8ae10a044db313389e0feaa8211c0d (diff) | |
download | weechat-1a00368888118ed8d5aa620b164cc466fa005045.zip |
core: add option weechat.look.nick_color_hash_salt to allow for reshuffling of colors (issue #635)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-config.c | 8 | ||||
-rw-r--r-- | src/core/wee-config.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c index e1cecc7ee..11d399fd2 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -153,6 +153,7 @@ struct t_config_option *config_look_mouse; struct t_config_option *config_look_mouse_timer_delay; struct t_config_option *config_look_nick_color_force; struct t_config_option *config_look_nick_color_hash; +struct t_config_option *config_look_nick_color_hash_salt; struct t_config_option *config_look_nick_color_stop_chars; struct t_config_option *config_look_nick_prefix; struct t_config_option *config_look_nick_suffix; @@ -3246,6 +3247,13 @@ config_weechat_init_options () "using 32-bit instead of 64-bit integer"), "djb2|sum|djb2_32|sum_32", 0, 0, "djb2", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + config_look_nick_color_hash_salt = config_file_new_option ( + weechat_config_file, ptr_section, + "nick_color_hash_salt", "string", + N_("salt to be used with the hash algorithm used for nick colors; " + "modifying this shuffles nick colors"), + NULL, 0, 0, "", NULL, 0, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); config_look_nick_color_stop_chars = config_file_new_option ( weechat_config_file, ptr_section, "nick_color_stop_chars", "string", diff --git a/src/core/wee-config.h b/src/core/wee-config.h index 8cf1a61bf..40c24515b 100644 --- a/src/core/wee-config.h +++ b/src/core/wee-config.h @@ -206,6 +206,7 @@ extern struct t_config_option *config_look_mouse; extern struct t_config_option *config_look_mouse_timer_delay; extern struct t_config_option *config_look_nick_color_force; extern struct t_config_option *config_look_nick_color_hash; +extern struct t_config_option *config_look_nick_color_hash_salt; extern struct t_config_option *config_look_nick_color_stop_chars; extern struct t_config_option *config_look_nick_prefix; extern struct t_config_option *config_look_nick_suffix; |