mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
fix syntax
This commit is contained in:
parent
786aaf7a6d
commit
4b1cc017a9
1 changed files with 2 additions and 0 deletions
|
@ -437,6 +437,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if fields.chatsubmit and fields.chatmessage ~= "" then
|
if fields.chatsubmit and fields.chatmessage ~= "" then
|
||||||
if not minetest.check_player_privs(player,"shout") then
|
if not minetest.check_player_privs(player,"shout") then
|
||||||
minetest.chat_send_player(player:get_player_name(),S("You are missing the 'shout' privilege! It's required in order to talk in chat..."))
|
minetest.chat_send_player(player:get_player_name(),S("You are missing the 'shout' privilege! It's required in order to talk in chat..."))
|
||||||
|
return
|
||||||
|
end
|
||||||
minetest.chat_send_all(minetest.format_chat_message(player:get_player_name(), fields.chatmessage))
|
minetest.chat_send_all(minetest.format_chat_message(player:get_player_name(), fields.chatmessage))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue