Announce map name and author to IRC
This commit is contained in:
parent
6c6f150b91
commit
c6526d32f2
2 changed files with 4 additions and 0 deletions
|
@ -3,3 +3,4 @@ ctf_team_base?
|
||||||
ctf?
|
ctf?
|
||||||
ctf_match?
|
ctf_match?
|
||||||
worldedit?
|
worldedit?
|
||||||
|
irc?
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue