summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarza <arza@arza.us>2017-03-26 08:14:41 +0300
committerarza <arza@arza.us>2017-03-26 08:14:41 +0300
commit24fd69e42ccae4da9fdfa056774b370caf22cc2d (patch)
tree1f8c7194841c4ce496286af3787be7eee344ea88 /src
parent370fbeb5a39b0b168551c1dd6d23c02f60c32721 (diff)
downloadweechat-24fd69e42ccae4da9fdfa056774b370caf22cc2d.zip
core: support local variables in /buffer get
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index a3a6bb472..602cca093 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -1112,7 +1112,8 @@ COMMAND_CALLBACK(buffer)
gui_buffer_get_integer (buffer, argv[2]));
}
if (gui_buffer_property_in_list (gui_buffer_properties_get_string,
- argv[2]))
+ argv[2])
+ || (string_strncasecmp (argv[2], "localvar_", 9) == 0))
{
gui_chat_printf (NULL, "%s%s%s: (str) %s = %s",
GUI_COLOR(GUI_COLOR_CHAT_BUFFER),