From bb85720710a4003cf6ce530d2eb00b28a4578ec7 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 8 Apr 2016 17:59:12 +0100 Subject: [PATCH] Send report and team chat to private IRC channel --- mods/ctf_pvp_engine | 2 +- mods/report/depends.txt | 1 + mods/report/init.lua | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mods/ctf_pvp_engine b/mods/ctf_pvp_engine index aa6cef7..ae9c820 160000 --- a/mods/ctf_pvp_engine +++ b/mods/ctf_pvp_engine @@ -1 +1 @@ -Subproject commit aa6cef7a398fa6e539de7f035ae153a70343db5e +Subproject commit ae9c820e03e0b89955ad0701149d374a2ef3f906 diff --git a/mods/report/depends.txt b/mods/report/depends.txt index 7df2c28..ac57a53 100644 --- a/mods/report/depends.txt +++ b/mods/report/depends.txt @@ -1 +1,2 @@ email +irc? diff --git a/mods/report/init.lua b/mods/report/init.lua index a544294..16cb3c9 100644 --- a/mods/report/init.lua +++ b/mods/report/init.lua @@ -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"),