Add note that chat messages can be marked as handled.
authorRobert Zenz <Bobby@bonsaimind.org>
Tue, 21 Jul 2015 19:43:01 +0000 (21:43 +0200)
committerest31 <MTest31@outlook.com>
Wed, 22 Jul 2015 03:43:30 +0000 (05:43 +0200)
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