Skip to content
Snippets Groups Projects
Commit ca9ea578 authored by DarkGod's avatar DarkGod
Browse files

fix

parent 65b124bf
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -83,6 +83,7 @@ function _M:setFunctionEnv(fct)
local env = setmetatable({
self = self,
chat_env = self.chat_env,
newChat = function(c) self:addChat(c) end,
}, {__index=_G})
setfenv(fct, env)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment