Report annoucement made more private

Not everyone on irc will be able to see what you're reporting now!
This commit is contained in:
Elkien3 2017-10-04 21:59:37 -05:00
parent 29d4dd77b1
commit 566a1a0c98

View File

@ -26,12 +26,12 @@ minetest.register_chatcommand("report", {
mod_list = table.concat(mods, ", ") mod_list = table.concat(mods, ", ")
email.send_mail(name, minetest.setting_get("name"), email.send_mail(name, minetest.setting_get("name"),
"Report: " .. param .. " (mods online: " .. mod_list .. ")") "Report: " .. param .. " (mods online: " .. mod_list .. ")")
irc:say(name .. " reports: " .. param .. " (mods online: " .. mod_list .. ")") irc:say(name .. " sent a report! (mods online: " .. mod_list .. ")")
return true, "Reported. Moderators currently online: " .. mod_list return true, "Reported. Moderators currently online: " .. mod_list
else else
email.send_mail(name, minetest.setting_get("name"), email.send_mail(name, minetest.setting_get("name"),
"Report: " .. param .. " (no mods online)") "Report: " .. param .. " (no mods online)")
irc:say(name .. " reports: " .. param .. " (no mods online)") irc:say(name .. " sent a report! (no mods online)")
return true, "Reported. We'll get back to you." return true, "Reported. We'll get back to you."
end end
end end