Skip to content

Commit 4eacce5

Browse files
Robert Zenzest31
Robert Zenz
authored andcommittedJul 22, 2015
Add note that chat messages can be marked as handled.
1 parent 8b472fd commit 4eacce5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎doc/lua_api.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,7 @@ Call these functions only at load time!
18331833
* `dug_too_fast`
18341834
* `minetest.register_on_chat_message(func(name, message))`
18351835
* Called always when a player says something
1836+
* Return `true` to mark the message as handled, which means that it will not be sent to other players
18361837
* `minetest.register_on_player_receive_fields(func(player, formname, fields))`
18371838
* Called when a button is pressed in player's inventory form
18381839
* Newest functions are called first

0 commit comments

Comments
 (0)
Please sign in to comment.