diff options
Diffstat (limited to 'server/src/emmy')
-rw-r--r-- | server/src/emmy/generic.lua | 2 | ||||
-rw-r--r-- | server/src/emmy/param.lua | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/server/src/emmy/generic.lua b/server/src/emmy/generic.lua index d47ee585..82fd0c4b 100644 --- a/server/src/emmy/generic.lua +++ b/server/src/emmy/generic.lua @@ -6,7 +6,7 @@ mt.__index = mt mt.type = 'emmy.generic' function mt:getName() - return self.name + return self.name:getName() end function mt:setValue(value) diff --git a/server/src/emmy/param.lua b/server/src/emmy/param.lua index 84474db6..9a2d407f 100644 --- a/server/src/emmy/param.lua +++ b/server/src/emmy/param.lua @@ -31,9 +31,13 @@ end return function (manager, source) local self = setmetatable({ - name = source[1][1], source = source.id, _manager = manager, }, mt) + if source.type == 'emmyParam' then + self.name = source[1][1] + elseif source.type == 'emmyVararg' then + self.name = '...' + end return self end |