aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Alexander Stevenson <jastevenson303@gmail.com>2017-10-05 10:14:10 -0400
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-10-05 16:14:10 +0200
commit4337b4896240cd1a72a5414db8237577a9a89b88 (patch)
treed99c4da2e9f36b4127192a194838fa826a126c99
parent4e19791cde6b203ad853905d8c1481c43004a7ea (diff)
downloadminetest-4337b4896240cd1a72a5414db8237577a9a89b88.tar.gz
minetest-4337b4896240cd1a72a5414db8237577a9a89b88.tar.bz2
minetest-4337b4896240cd1a72a5414db8237577a9a89b88.zip
Move register_on_modchannel_signal() (#6497)
Moved from lua_api.txt to client_lua_api.md.
-rw-r--r--doc/client_lua_api.md11
-rw-r--r--doc/lua_api.txt10
2 files changed, 10 insertions, 11 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md
index 1f50ae362..fb00ada66 100644
--- a/doc/client_lua_api.md
+++ b/doc/client_lua_api.md
@@ -688,7 +688,16 @@ Call these functions only at load time!
* You must have joined some channels before, and server must acknowledge the
join request.
* If message comes from a server mod, `sender` field is an empty string.
-
+* `minetest.register_on_modchannel_signal(func(channel_name, signal))`
+ * Called when a valid incoming mod channel signal is received
+ * Signal id permit to react to server mod channel events
+ * Possible values are:
+ 0: join_ok
+ 1: join_failed
+ 2: leave_ok
+ 3: leave_failed
+ 4: event_on_not_joined_channel
+ 5: state_changed
* `minetest.register_on_inventory_open(func(inventory))`
* Called when the local player open inventory
* Newest functions are called first
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 9890486c5..d9e858529 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2529,16 +2529,6 @@ Call these functions only at load time!
* Called when an incoming mod channel message is received
* You should have joined some channels to receive events.
* If message comes from a server mod, `sender` field is an empty string.
-* `minetest.register_on_modchannel_signal(func(channel_name, signal))`
- * Called when a valid incoming mod channel signal is received
- * Signal id permit to react to server mod channel events
- * Possible values are:
- 0: join_ok
- 1: join_failed
- 2: leave_ok
- 3: leave_failed
- 4: event_on_not_joined_channel
- 5: state_changed
### Other registration functions
* `minetest.register_chatcommand(cmd, chatcommand definition)`