From eb5b2514e6555f3b25d76269b9f57585d8ad8a67 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 2 Feb 2018 14:24:04 +0000 Subject: [PATCH] Remove online moderator from /report --- mods/report/init.lua | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/mods/report/init.lua b/mods/report/init.lua index 16cb3c9..cd6cd9f 100644 --- a/mods/report/init.lua +++ b/mods/report/init.lua @@ -26,15 +26,9 @@ minetest.register_chatcommand("report", { if minetest.global_exists("irc") and irc.feature_mod_channel then irc:say(irc.config.channel, "UserReport by " .. name .. ": " .. param, true) end - if #mods > 0 then - mod_list = table.concat(mods, ", ") - email.send_mail(name, minetest.setting_get("name"), - "Report: " .. param .. " (mods online: " .. mod_list .. ")") - return true, "Reported. Moderators currently online: " .. mod_list - else - email.send_mail(name, minetest.setting_get("name"), - "Report: " .. param .. " (no mods online)") - return true, "Reported. We'll get back to you." - end + + email.send_mail(name, minetest.setting_get("name"), + "Report: " .. param .. " (no mods online)") + return true, "Reported. We'll get back to you." end })