diff --git a/plugin.lua b/plugin.lua index 4b3c29e..770c521 100644 --- a/plugin.lua +++ b/plugin.lua @@ -35,13 +35,14 @@ function tick() end function data_handle(data) end ---This function is called when the group "L" is in the sequence ---It should be defined by the user in the script. +---@param group string group this was called in from the group sequence ---@param b integer ---@param c integer ---@param d integer ---@return integer b ---@return integer c ---@return integer d -function group(b, c, d) end +function group(group, b, c, d) end ---@param pi integer function set_rds_pi(pi) end diff --git a/src/lua_rds.c b/src/lua_rds.c index 0129bf0..99be54c 100644 --- a/src/lua_rds.c +++ b/src/lua_rds.c @@ -591,6 +591,7 @@ void lua_group(RDSGroup* group) { lua_getglobal(L, "group"); if (lua_isfunction(L, -1)) { + lua_pushstring(L, "L"); lua_pushinteger(L, group->b); lua_pushinteger(L, group->c); lua_pushinteger(L, group->d);