summaryrefslogtreecommitdiff
path: root/doc/client_lua_api.md
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2017-06-09 15:48:04 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-09 15:48:04 +0200
commit44495ea719b98aca341b9082521d0d4ee51405c8 (patch)
tree450c62d0435642a4a4bb1c7ac09c33ed69b8679a /doc/client_lua_api.md
parent312ca0382b864e6cdc20e308c33558869527a8ff (diff)
downloadminetest-44495ea719b98aca341b9082521d0d4ee51405c8.tar.gz
minetest-44495ea719b98aca341b9082521d0d4ee51405c8.tar.bz2
minetest-44495ea719b98aca341b9082521d0d4ee51405c8.zip
CSM: Fix documentation error for register_on_*_chat_messages (#5917)
Diffstat (limited to 'doc/client_lua_api.md')
-rw-r--r--doc/client_lua_api.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md
index 42d2bfbbf..43b33ac97 100644
--- a/doc/client_lua_api.md
+++ b/doc/client_lua_api.md
@@ -648,10 +648,10 @@ Call these functions only at load time!
semi-frequent intervals as well as on server shutdown.
* `minetest.register_on_connect(func())`
* Called at the end of client connection (when player is loaded onto map)
-* `minetest.register_on_receiving_chat_message(func(name, message))`
+* `minetest.register_on_receiving_chat_message(func(message))`
* Called always when a client receive a message
* Return `true` to mark the message as handled, which means that it will not be shown to chat
-* `minetest.register_on_sending_chat_message(func(name, message))`
+* `minetest.register_on_sending_chat_message(func(message))`
* Called always when a client send a message from chat
* Return `true` to mark the message as handled, which means that it will not be sent to server
* `minetest.register_chatcommand(cmd, chatcommand definition)`
@@ -676,7 +676,7 @@ Call these functions only at load time!
* Called when the local player punches a node
* Newest functions are called first
* If any function returns true, the punch is ignored
-* `minetest.register_on_placenode(function(pointed_thing, node))`
+* `minetest.register_on_placenode(function(pointed_thing, node))`
* Called when a node has been placed
* `minetest.register_on_item_use(func(item, pointed_thing))`
* Called when the local player uses an item.