Send team chat to private IRC channel
This commit is contained in:
parent
aa6cef7a39
commit
ae9c820e03
@ -1,2 +1,3 @@
|
|||||||
ctf
|
ctf
|
||||||
chatplus?
|
chatplus?
|
||||||
|
irc?
|
||||||
|
@ -282,6 +282,9 @@ minetest.register_chatcommand("t", {
|
|||||||
minetest.chat_send_player(username,
|
minetest.chat_send_player(username,
|
||||||
tname .. "<" .. name .. "> ** " .. param .. " **")
|
tname .. "<" .. name .. "> ** " .. param .. " **")
|
||||||
end
|
end
|
||||||
|
if minetest.global_exists("irc") and irc.feature_mod_channel then
|
||||||
|
irc:say(irc.config.channel, tname .. "<" .. name .. "> ** " .. param .. " **", true)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(name,
|
minetest.chat_send_player(name,
|
||||||
"You're not in a team, so you have no team to talk to.")
|
"You're not in a team, so you have no team to talk to.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user