aboutsummaryrefslogtreecommitdiff
path: root/builtin/chatcommands.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/chatcommands.lua')
-rw-r--r--builtin/chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/chatcommands.lua b/builtin/chatcommands.lua
index e5d31c6aa..7845c7083 100644
--- a/builtin/chatcommands.lua
+++ b/builtin/chatcommands.lua
@@ -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