summaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-09-22 22:48:36 +0200
committerParamat <paramat@users.noreply.github.com>2019-09-22 21:48:36 +0100
commitd364b6d0a66d309c9d612ae5ae2fb8fc7c32c69f (patch)
tree158a4c44cf909161507873d7f828baa6322dfa58 /builtin/game
parentcf78e37da37d7565a6602034f1ba6c244936bc0c (diff)
downloadminetest-d364b6d0a66d309c9d612ae5ae2fb8fc7c32c69f.tar.gz
minetest-d364b6d0a66d309c9d612ae5ae2fb8fc7c32c69f.tar.bz2
minetest-d364b6d0a66d309c9d612ae5ae2fb8fc7c32c69f.zip
Rename "private messages" to "direct messages" (#8971)
These messages can be read by server administrators, which makes them not actually private.
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/chat.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua
index 84559b064..f5b687732 100644
--- a/builtin/game/chat.lua
+++ b/builtin/game/chat.lua
@@ -990,7 +990,7 @@ core.register_chatcommand("clearobjects", {
core.register_chatcommand("msg", {
params = "<name> <message>",
- 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,