Skip to content

Commit

Permalink
Add note that chat messages can be marked as handled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Zenz authored and est31 committed Jul 22, 2015
1 parent 8b472fd commit 4eacce5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/lua_api.txt
Expand Up @@ -1833,6 +1833,7 @@ Call these functions only at load time!
* `dug_too_fast`
* `minetest.register_on_chat_message(func(name, message))`
* Called always when a player says something
* Return `true` to mark the message as handled, which means that it will not be sent to other players
* `minetest.register_on_player_receive_fields(func(player, formname, fields))`
* Called when a button is pressed in player's inventory form
* Newest functions are called first
Expand Down

0 comments on commit 4eacce5

Please sign in to comment.