diff --git a/depends.txt b/depends.txt index 89aab53..7df2c28 100644 --- a/depends.txt +++ b/depends.txt @@ -1 +1 @@ -chatplus +email diff --git a/init.lua b/init.lua index 04392c1..3864fb2 100644 --- a/init.lua +++ b/init.lua @@ -1,7 +1,3 @@ -if not chatplus.send_mail then - error("You need to update chatplus!") -end - minetest.register_chatcommand("report", { func = function(name, param) param = param:trim() @@ -28,11 +24,11 @@ minetest.register_chatcommand("report", { if #mods > 0 then mod_list = table.concat(mods, ", ") - chatplus.send_mail(name, minetest.setting_get("name"), + email.send_mail(name, minetest.setting_get("name"), "Report: " .. param .. " (mods online: " .. mod_list .. ")") return true, "Reported. Moderators currently online: " .. mod_list else - chatplus.send_mail(name, minetest.setting_get("name"), + email.send_mail(name, minetest.setting_get("name"), "Report: " .. param .. " (no mods online)") return true, "Reported. We'll get back to you." end