summaryrefslogtreecommitdiff
path: root/server/src/emmy/param.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/emmy/param.lua')
-rw-r--r--server/src/emmy/param.lua6
1 files changed, 5 insertions, 1 deletions
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