镜像自地址
https://github.com/luanti-org/luanti.git
已同步 2025-11-13 05:15:28 +01:00
Fix executing register_chatcommand-defined commands even in the middle of a chat line
这个提交包含在:
@@ -14,7 +14,7 @@ function minetest.register_chatcommand(cmd, def)
|
||||
end
|
||||
|
||||
minetest.register_on_chat_message(function(name, message)
|
||||
local cmd, param = string.match(message, "/([^ ]+) *(.*)")
|
||||
local cmd, param = string.match(message, "^/([^ ]+) *(.*)")
|
||||
if not param then
|
||||
param = ""
|
||||
end
|
||||
|
||||
在新工单中引用
屏蔽一个用户