From dea9dc1be6fc7c76bea4cad68381206bb8a5f904 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 22 Sep 2019 22:48:36 +0200 Subject: [PATCH] Rename "private messages" to "direct messages" (#8971) These messages can be read by server administrators, which makes them not actually private. --- builtin/game/chat.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua index 84559b0..f5b6877 100644 --- a/builtin/game/chat.lua +++ b/builtin/game/chat.lua @@ -990,7 +990,7 @@ core.register_chatcommand("clearobjects", { core.register_chatcommand("msg", { params = " ", - description = "Send a private message", + description = "Send a direct message to a player", privs = {shout=true}, func = function(name, param) local sendto, message = param:match("^(%S+)%s(.+)$") @@ -1001,9 +1001,9 @@ core.register_chatcommand("msg", { return false, "The player " .. sendto .. " is not online." end - core.log("action", "PM from " .. name .. " to " .. sendto + core.log("action", "DM from " .. name .. " to " .. sendto .. ": " .. message) - core.chat_send_player(sendto, "PM from " .. name .. ": " + core.chat_send_player(sendto, "DM from " .. name .. ": " .. message) return true, "Message sent." end,