]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - doc/lua_api.txt
Add note that chat messages can be marked as handled.
[dragonfireclient.git] / doc / lua_api.txt
index 318c23a76b3e45b97301fa6fa2bc941c64d54261..b11acb9215e01f15e046ec16f5a6b2c9b8b9de39 100644 (file)
@@ -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