diff --git a/ctf_chat/depends.txt b/ctf_chat/depends.txt index dd0899f..8a4536f 100644 --- a/ctf_chat/depends.txt +++ b/ctf_chat/depends.txt @@ -1,2 +1,3 @@ ctf chatplus? +irc? diff --git a/ctf_chat/init.lua b/ctf_chat/init.lua index 447ac75..5f06728 100644 --- a/ctf_chat/init.lua +++ b/ctf_chat/init.lua @@ -282,6 +282,9 @@ minetest.register_chatcommand("t", { minetest.chat_send_player(username, tname .. "<" .. name .. "> ** " .. param .. " **") end + if minetest.global_exists("irc") and irc.feature_mod_channel then + irc:say(irc.config.channel, tname .. "<" .. name .. "> ** " .. param .. " **", true) + end else minetest.chat_send_player(name, "You're not in a team, so you have no team to talk to.")