Skip to content

Commit

Permalink
Avoid prepending "Server -!- " to messages sent using the command block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed Apr 27, 2013
1 parent 1a5b1b4 commit d4f18d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesecons_commandblock/init.lua
Expand Up @@ -19,15 +19,15 @@ minetest.register_chatcommand("tell", {
if not minetest.env:get_player_by_name(target) then
minetest.chat_send_player(name, "Invalid target: " .. target)
end
minetest.chat_send_player(target, name .. " whispers: " .. message)
minetest.chat_send_player(target, name .. " whispers: " .. message, false)
end
})

minetest.register_chatcommand("tellme", {
params = "<text>",
description = "Say <text> to yourself",
func = function(name, param)
minetest.chat_send_player(name, param)
minetest.chat_send_player(name, param, false)
end
})

Expand Down

0 comments on commit d4f18d0

Please sign in to comment.