]> git.lizzy.rs Git - minetest.git/commitdiff
Move register_on_modchannel_signal() (#6497)
authorJames Alexander Stevenson <jastevenson303@gmail.com>
Thu, 5 Oct 2017 14:14:10 +0000 (10:14 -0400)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 5 Oct 2017 14:14:10 +0000 (16:14 +0200)
Moved from lua_api.txt to client_lua_api.md.

doc/client_lua_api.md
doc/lua_api.txt

index 1f50ae362b3630bf451dac5b39a20aaf7689b138..fb00ada661151e9e2d63d559f8be9d916ec924e4 100644 (file)
@@ -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
index 9890486c5ba2bd9484ccc233262c17944ed692d9..d9e8585299b5d593e4e731ea5d21e9c9b1c7e5d9 100644 (file)
@@ -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)`