diff options
author | DS <vorunbekannt75@web.de> | 2017-06-09 15:48:04 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-09 15:48:04 +0200 |
commit | 44495ea719b98aca341b9082521d0d4ee51405c8 (patch) | |
tree | 450c62d0435642a4a4bb1c7ac09c33ed69b8679a /clientmods/preview | |
parent | 312ca0382b864e6cdc20e308c33558869527a8ff (diff) | |
download | minetest-44495ea719b98aca341b9082521d0d4ee51405c8.tar.gz minetest-44495ea719b98aca341b9082521d0d4ee51405c8.tar.bz2 minetest-44495ea719b98aca341b9082521d0d4ee51405c8.zip |
CSM: Fix documentation error for register_on_*_chat_messages (#5917)
Diffstat (limited to 'clientmods/preview')
-rw-r--r-- | clientmods/preview/init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua index 073ea11db..809e4f017 100644 --- a/clientmods/preview/init.lua +++ b/clientmods/preview/init.lua @@ -30,13 +30,13 @@ core.register_on_item_use(function(itemstack, pointed_thing) end) -- This is an example function to ensure it's working properly, should be removed before merge -core.register_on_receiving_chat_messages(function(message) +core.register_on_receiving_chat_message(function(message) print("[PREVIEW] Received message " .. message) return false end) -- This is an example function to ensure it's working properly, should be removed before merge -core.register_on_sending_chat_messages(function(message) +core.register_on_sending_chat_message(function(message) print("[PREVIEW] Sending message " .. message) return false end) @@ -155,4 +155,3 @@ core.register_chatcommand("privs", { return true, core.privs_to_string(minetest.get_privilege_list()) end, }) - |