aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorShadowNinja <noreply@gmail.com>2013-03-29 23:28:13 -0400
committerPerttu Ahola <celeron55@gmail.com>2013-04-23 09:47:08 +0300
commit3d4d0cb5749a68436cccd08b7a135f9bb7527038 (patch)
tree78bc54a818cb7abdca87e1bde76ac6fc2ad9bfeb /doc
parent9894167bbf516c40bf2b8577179ff8f13b8b54e2 (diff)
downloadminetest-3d4d0cb5749a68436cccd08b7a135f9bb7527038.tar.gz
minetest-3d4d0cb5749a68436cccd08b7a135f9bb7527038.tar.bz2
minetest-3d4d0cb5749a68436cccd08b7a135f9bb7527038.zip
Add option to not prepend "Server -!- " to messages sent with minetest.chat_send_player()
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 76f687f8e..38e12882d 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1005,7 +1005,8 @@ minetest.check_player_privs(name, {priv1=true,...}) -> bool, missing_privs
Chat:
minetest.chat_send_all(text)
-minetest.chat_send_player(name, text)
+minetest.chat_send_player(name, text, prepend)
+^ prepend: optional, if it is set to false "Server -!- " will not be prepended to the message
Inventory:
minetest.get_inventory(location) -> InvRef