CSM: Fix documentation error for register_on_*_chat_messages (#5917)
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user