diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-05 19:05:32 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-25 16:35:27 +0200 |
commit | d71524c582edbddc8222668c6aa4021da7a64c18 (patch) | |
tree | 3f411b5604a9c46aa2adc63320e3f8065c9a01ad /src/core/wee-config-file.c | |
parent | 384b3adf9e0d00c68635d0a141b2a76e98243aab (diff) | |
download | weechat-d71524c582edbddc8222668c6aa4021da7a64c18.zip |
fset: add ${file}, ${section}, ${option}, add color options
Diffstat (limited to 'src/core/wee-config-file.c')
-rw-r--r-- | src/core/wee-config-file.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c index 208a4924b..e7820efdb 100644 --- a/src/core/wee-config-file.c +++ b/src/core/wee-config-file.c @@ -1824,7 +1824,11 @@ config_file_option_get_string (struct t_config_option *option, if (!option || !property) return NULL; - if (string_strcasecmp (property, "name") == 0) + if (string_strcasecmp (property, "config_name") == 0) + return option->config_file->name; + else if (string_strcasecmp (property, "section_name") == 0) + return option->section->name; + else if (string_strcasecmp (property, "name") == 0) return option->name; else if (string_strcasecmp (property, "parent_name") == 0) return option->parent_name; |