1
0
镜像自地址 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

这个提交包含在:
Perttu Ahola
2012-04-13 17:20:43 +03:00
父节点 1eac6ff8ff
当前提交 24603d7ad3

查看文件

@@ -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