From 66bb7fc47d61f06fea098ca9dfa1981820dd29be Mon Sep 17 00:00:00 2001 From: luk3yx Date: Tue, 12 Feb 2019 17:10:41 +1300 Subject: [PATCH 1/2] Prevent players from joining the channel when logged in from IRC --- player_part.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player_part.lua b/player_part.lua index 09aad75..0e7b1c6 100644 --- a/player_part.lua +++ b/player_part.lua @@ -13,6 +13,8 @@ end function irc.player_join(name) if irc.joined_players[name] then return false, "You are already in the channel" + elseif not minetest.get_player_by_name(name) then + return false, "You need to be in-game to join the channel" end irc.joined_players[name] = true return true, "You joined the channel" From 1c23f8987bd6b3f5f1e2d9023128972a93088b8b Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 13 Feb 2019 21:46:50 -0500 Subject: [PATCH 2/2] add another lua search path for JIT --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index 67dec28..62d8fdd 100644 --- a/init.lua +++ b/init.lua @@ -23,11 +23,17 @@ ie.package.path = -- /usr/local/share and /usr/local/lib but LuaSocket is often installed under -- /usr/share and /usr/lib. if not rawget(_G, "jit") and package.config:sub(1, 1) == "/" then + ie.package.path = ie.package.path.. ";/usr/share/lua/5.1/?.lua".. ";/usr/share/lua/5.1/?/init.lua" + ie.package.cpath = ie.package.cpath.. ";/usr/lib/lua/5.1/?.so" + + ie.package.cpath = "/usr/lib/x86_64-linux-gnu/lua/5.1/?.so;"..ie.package.cpath + + end -- Temporarily set require so that LuaIRC can access it