mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Fixed global variables in irc mod
This commit is contained in:
parent
d8a923bf32
commit
25d7f6e339
@ -13,7 +13,7 @@ package.path =
|
|||||||
-- The build of Lua that Minetest comes with only looks for libraries under
|
-- The build of Lua that Minetest comes with only looks for libraries under
|
||||||
-- /usr/local/share and /usr/local/lib but LuaSocket is often installed under
|
-- /usr/local/share and /usr/local/lib but LuaSocket is often installed under
|
||||||
-- /usr/share and /usr/lib.
|
-- /usr/share and /usr/lib.
|
||||||
if not jit and package.config:sub(1, 1) == "/" then
|
if not rawget(_G,"jit") and package.config:sub(1, 1) == "/" then
|
||||||
package.path = package.path..
|
package.path = package.path..
|
||||||
";/usr/share/lua/5.1/?.lua"..
|
";/usr/share/lua/5.1/?.lua"..
|
||||||
";/usr/share/lua/5.1/?/init.lua"
|
";/usr/share/lua/5.1/?/init.lua"
|
||||||
|
@ -185,7 +185,7 @@ function meta:think()
|
|||||||
self.lastThought = socket.gettime()
|
self.lastThought = socket.gettime()
|
||||||
end
|
end
|
||||||
|
|
||||||
local handlers = handlers
|
local handlers = rawget(_G,"handlers")
|
||||||
|
|
||||||
function meta:handle(msg)
|
function meta:handle(msg)
|
||||||
local handler = irc.handlers[msg.command]
|
local handler = irc.handlers[msg.command]
|
||||||
|
Loading…
Reference in New Issue
Block a user