Rename "private messages" to "direct messages" (#8971)

These messages can be read by server administrators, which makes them
not actually private.
master
Hugo Locurcio 2019-09-22 22:48:36 +02:00 committed by Paramat
parent cf78e37da3
commit d364b6d0a6
1 changed files with 3 additions and 3 deletions

View File

@ -990,7 +990,7 @@ core.register_chatcommand("clearobjects", {
core.register_chatcommand("msg", { core.register_chatcommand("msg", {
params = "<name> <message>", params = "<name> <message>",
description = "Send a private message", description = "Send a direct message to a player",
privs = {shout=true}, privs = {shout=true},
func = function(name, param) func = function(name, param)
local sendto, message = param:match("^(%S+)%s(.+)$") local sendto, message = param:match("^(%S+)%s(.+)$")
@ -1001,9 +1001,9 @@ core.register_chatcommand("msg", {
return false, "The player " .. sendto return false, "The player " .. sendto
.. " is not online." .. " is not online."
end end
core.log("action", "PM from " .. name .. " to " .. sendto core.log("action", "DM from " .. name .. " to " .. sendto
.. ": " .. message) .. ": " .. message)
core.chat_send_player(sendto, "PM from " .. name .. ": " core.chat_send_player(sendto, "DM from " .. name .. ": "
.. message) .. message)
return true, "Message sent." return true, "Message sent."
end, end,