From: Robert Zenz Date: Tue, 21 Jul 2015 19:43:01 +0000 (+0200) Subject: Add note that chat messages can be marked as handled. X-Git-Tag: 0.4.13~91 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4eacce5e2f89bd6864f9a231488b507ac33e4902;p=oweals%2Fminetest.git Add note that chat messages can be marked as handled. --- 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