Try this irc say thing again.
This should work according to both the code AND the docs.
This commit is contained in:
parent
2dc748ddd2
commit
be8169879e
@ -6,3 +6,4 @@ skybox
|
|||||||
music
|
music
|
||||||
sfinv
|
sfinv
|
||||||
conf
|
conf
|
||||||
|
irc?
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user