From eaed7673a1ff4e167afa6cc568f714931cf370d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 9 Dec 2018 15:25:06 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E4=B8=8B=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/compile.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src/matcher/compile.lua') diff --git a/server/src/matcher/compile.lua b/server/src/matcher/compile.lua index 7db5ad4b..557f4f59 100644 --- a/server/src/matcher/compile.lua +++ b/server/src/matcher/compile.lua @@ -271,6 +271,7 @@ function mt:getString(exp) return { type = 'string', string = exp[1], + valuetype = 'string', childs = {}, } end @@ -310,7 +311,7 @@ function mt:setValue(var, value) if not var or not value then return end - var.value = value.value or value + var.value = value.value or value if value.childs then var.childs = value.childs for _, child in pairs(value.childs) do -- cgit v1.2.3