projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b472fd
)
Add note that chat messages can be marked as handled.
author
Robert Zenz
<Bobby@bonsaimind.org>
Tue, 21 Jul 2015 19:43:01 +0000
(21:43 +0200)
committer
est31
<MTest31@outlook.com>
Wed, 22 Jul 2015 03:43:30 +0000
(
05:43
+0200)
doc/lua_api.txt
patch
|
blob
|
history
diff --git
a/doc/lua_api.txt
b/doc/lua_api.txt
index 318c23a76b3e45b97301fa6fa2bc941c64d54261..b11acb9215e01f15e046ec16f5a6b2c9b8b9de39 100644
(file)
--- 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