Added: cleaner checking for irc mod
parent
d5bd6e255b
commit
bb9710c6bb
4
init.lua
4
init.lua
|
@ -1466,8 +1466,8 @@ local function clean_join_cache(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- fix irc mod with an override
|
-- fix irc mod with an override if present
|
||||||
if irc then -- luacheck: ignore
|
if minetest.get_modpath('irc') ~= nil then -- luacheck: ignore
|
||||||
irc.reply = function(message) -- luacheck: ignore
|
irc.reply = function(message) -- luacheck: ignore
|
||||||
if not irc.last_from then -- luacheck: ignore
|
if not irc.last_from then -- luacheck: ignore
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue