Skip to content
Permalink
Browse files

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

These messages can be read by server administrators, which makes them
not actually private.
  • Loading branch information
Calinou authored and paramat committed Sep 22, 2019
1 parent cf78e37 commit d364b6d0a66d309c9d612ae5ae2fb8fc7c32c69f
Showing with 3 additions and 3 deletions.
  1. +3 −3 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,

0 comments on commit d364b6d

Please sign in to comment.
You can’t perform that action at this time.