Announce map name and author to IRC

This commit is contained in:
rubenwardy 2018-01-27 19:44:03 +00:00
parent 6c6f150b91
commit c6526d32f2
2 changed files with 4 additions and 0 deletions

View file

@ -3,3 +3,4 @@ ctf_team_base?
ctf? ctf?
ctf_match? ctf_match?
worldedit? worldedit?
irc?

View file

@ -72,6 +72,9 @@ function ctf_map.place_map(map)
msg = msg .. "\n" .. map.hint msg = msg .. "\n" .. map.hint
end end
minetest.chat_send_all(msg) minetest.chat_send_all(msg)
if minetest.global_exists("irc") and irc.connected then
irc:say(msg)
end
end) end)
minetest.after(10, function() minetest.after(10, function()