From 4eacce5e2f89bd6864f9a231488b507ac33e4902 Mon Sep 17 00:00:00 2001 From: Robert Zenz Date: Tue, 21 Jul 2015 21:43:01 +0200 Subject: [PATCH] Add note that chat messages can be marked as handled. --- doc/lua_api.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 318c23a76..b11acb921 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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