Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Commit

Permalink
Send team chat to private IRC channel
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Apr 8, 2016
1 parent aa6cef7 commit ae9c820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ctf_chat/depends.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ctf
chatplus?
irc?
3 changes: 3 additions & 0 deletions ctf_chat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit ae9c820

Please sign in to comment.