From 14e429221c94a652d46d940c468fbe3114beb2df Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 1 Oct 2016 01:53:34 +0200 Subject: [PATCH] refactoring --- util/core.lua | 2 -- util/filter.lua | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/util/core.lua b/util/core.lua index 33427db..7d16ec6 100644 --- a/util/core.lua +++ b/util/core.lua @@ -31,8 +31,6 @@ do end end --- alternatively rely on module encapsulation, modifier "method" to declare methods - do local _state = setmetatable(t, T('__mode', 'kv')) local __index = function(self, k) diff --git a/util/filter.lua b/util/filter.lua index 34e7b4b..1b95326 100644 --- a/util/filter.lua +++ b/util/filter.lua @@ -254,7 +254,7 @@ do end if not self[str] and (str == 'usable' or str == 'exact' and self.name and size(self) == 1) then self[str] = A(str, 1) - return A('blizzard', str, 1) + return A('blizzard', str, str, 1) elseif i == 1 and strlen(str) <= 63 then self.name = A(str, unquote(str)) return A('blizzard', 'name', str, unquote(str))