Send report and team chat to private IRC channel

This commit is contained in:
rubenwardy 2016-04-08 17:59:12 +01:00
parent 52a8e22396
commit bb85720710
3 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit aa6cef7a398fa6e539de7f035ae153a70343db5e
Subproject commit ae9c820e03e0b89955ad0701149d374a2ef3f906

View file

@ -1 +1,2 @@
email
irc?

View file

@ -22,6 +22,10 @@ minetest.register_chatcommand("report", {
end
end
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"),