mirror of
				https://github.com/minetest-mods/mesecons.git
				synced 2025-11-04 12:55:29 +01:00 
			
		
		
		
	Avoid prepending "Server -!- " to messages sent using the command block.
This commit is contained in:
		@@ -19,7 +19,7 @@ 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
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -27,7 +27,7 @@ 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
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user