forked from minetest-mods/mesecons
Avoid prepending "Server -!- " to messages sent using the command block.
This commit is contained in:
parent
1a5b1b4691
commit
d4f18d08c0
@ -19,7 +19,7 @@ minetest.register_chatcommand("tell", {
|
|||||||
if not minetest.env:get_player_by_name(target) then
|
if not minetest.env:get_player_by_name(target) then
|
||||||
minetest.chat_send_player(name, "Invalid target: " .. target)
|
minetest.chat_send_player(name, "Invalid target: " .. target)
|
||||||
end
|
end
|
||||||
minetest.chat_send_player(target, name .. " whispers: " .. message)
|
minetest.chat_send_player(target, name .. " whispers: " .. message, false)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ minetest.register_chatcommand("tellme", {
|
|||||||
params = "<text>",
|
params = "<text>",
|
||||||
description = "Say <text> to yourself",
|
description = "Say <text> to yourself",
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
minetest.chat_send_player(name, param)
|
minetest.chat_send_player(name, param, false)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user