Skip to content

Commit d364b6d

Browse files
Calinouparamat
authored andcommittedSep 22, 2019
Rename "private messages" to "direct messages" (#8971)
These messages can be read by server administrators, which makes them not actually private.
1 parent cf78e37 commit d364b6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎builtin/game/chat.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ core.register_chatcommand("clearobjects", {
990990

991991
core.register_chatcommand("msg", {
992992
params = "<name> <message>",
993-
description = "Send a private message",
993+
description = "Send a direct message to a player",
994994
privs = {shout=true},
995995
func = function(name, param)
996996
local sendto, message = param:match("^(%S+)%s(.+)$")
@@ -1001,9 +1001,9 @@ core.register_chatcommand("msg", {
10011001
return false, "The player " .. sendto
10021002
.. " is not online."
10031003
end
1004-
core.log("action", "PM from " .. name .. " to " .. sendto
1004+
core.log("action", "DM from " .. name .. " to " .. sendto
10051005
.. ": " .. message)
1006-
core.chat_send_player(sendto, "PM from " .. name .. ": "
1006+
core.chat_send_player(sendto, "DM from " .. name .. ": "
10071007
.. message)
10081008
return true, "Message sent."
10091009
end,

0 commit comments

Comments
 (0)
Please sign in to comment.