mirror of
https://github.com/weechat/weechat.git
synced 2026-07-10 19:53:13 +02:00
core: add support of full color option name in command /eval and API function string_eval_expression()
This commit is contained in:
@@ -325,6 +325,9 @@ eval_replace_vars_cb (void *data, const char *text)
|
||||
/* 5. color code */
|
||||
if (strncmp (text, "color:", 6) == 0)
|
||||
{
|
||||
ptr_value = gui_color_search_config (text + 6);
|
||||
if (ptr_value)
|
||||
return strdup (ptr_value);
|
||||
ptr_value = gui_color_get_custom (text + 6);
|
||||
return strdup ((ptr_value) ? ptr_value : "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user