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 /builtin/client | |
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 'builtin/client')
-rw-r--r-- | builtin/client/chatcommands.lua | 2 | ||||
-rw-r--r-- | builtin/client/register.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/builtin/client/chatcommands.lua b/builtin/client/chatcommands.lua index 2b8cc4acd..ed43a6140 100644 --- a/builtin/client/chatcommands.lua +++ b/builtin/client/chatcommands.lua @@ -1,7 +1,7 @@ -- Minetest: builtin/client/chatcommands.lua -core.register_on_sending_chat_messages(function(message) +core.register_on_sending_chat_message(function(message) if message:sub(1,2) == ".." then return false end diff --git a/builtin/client/register.lua b/builtin/client/register.lua index 6b12ddec8..cfc5abaa7 100644 --- a/builtin/client/register.lua +++ b/builtin/client/register.lua @@ -61,8 +61,8 @@ end core.registered_globalsteps, core.register_globalstep = make_registration() core.registered_on_shutdown, core.register_on_shutdown = make_registration() core.registered_on_connect, core.register_on_connect = make_registration() -core.registered_on_receiving_chat_messages, core.register_on_receiving_chat_messages = make_registration() -core.registered_on_sending_chat_messages, core.register_on_sending_chat_messages = make_registration() +core.registered_on_receiving_chat_message, core.register_on_receiving_chat_message = make_registration() +core.registered_on_sending_chat_message, core.register_on_sending_chat_message = make_registration() core.registered_on_death, core.register_on_death = make_registration() core.registered_on_hp_modification, core.register_on_hp_modification = make_registration() core.registered_on_damage_taken, core.register_on_damage_taken = make_registration() |