Added: cleaner checking for irc mod

master
shivajiva101 2021-12-11 10:42:26 +00:00 committed by GitHub
parent d5bd6e255b
commit bb9710c6bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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