Rename "private messages" to "direct messages" (#8971)
authorHugo Locurcio <hugo.locurcio@hugo.pro>
Sun, 22 Sep 2019 20:48:36 +0000 (22:48 +0200)
committerParamat <paramat@users.noreply.github.com>
Sun, 22 Sep 2019 20:48:36 +0000 (21:48 +0100)
These messages can be read by server administrators, which makes them
not actually private.

builtin/game/chat.lua

index 84559b064f5fec9d31f6aadf0efd8b3065aca3c1..f5b687732c25139252de0ea9c0a50c4eaf31f2e9 100644 (file)
@@ -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,