Try this irc say thing again.

This should work according to both the code AND the docs.
This commit is contained in:
Auke Kok 2017-11-09 00:17:23 -08:00
parent 2dc748ddd2
commit be8169879e
2 changed files with 4 additions and 0 deletions

View File

@ -6,3 +6,4 @@ skybox
music music
sfinv sfinv
conf conf
irc?

View File

@ -625,6 +625,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if is_admin or (box_get_status(id) == db.STATUS_EDITING and is_builder(id)) then if is_admin or (box_get_status(id) == db.STATUS_EDITING and is_builder(id)) then
minetest.chat_send_player(name, "Submitting box " .. tostring(id)) minetest.chat_send_player(name, "Submitting box " .. tostring(id))
minetest.log("action", name .. " submits box " .. tostring(id)) minetest.log("action", name .. " submits box " .. tostring(id))
if irc then
irc.say(name .. " submits a box for review.")
end
box_set_status(id, db.STATUS_SUBMITTED) box_set_status(id, db.STATUS_SUBMITTED)
else else
log.fs_data(player, name, formname, fields) log.fs_data(player, name, formname, fields)